[Compbench-devel] CompBenchmarks++/libcompbenchmarks/Benchmark Benchmark.cpp, 1.2, 1.3 Benchmark.h,
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-01-26 12:59:37
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Benchmark In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv32551 Modified Files: Benchmark.cpp Benchmark.h Log Message: Name() is not purely virtual anymore. Index: Benchmark.h =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Benchmark/Benchmark.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Benchmark.h 23 Jan 2007 16:51:26 -0000 1.2 --- Benchmark.h 26 Jan 2007 12:59:31 -0000 1.3 *************** *** 60,64 **** \return a std::string representing current benchmark's identification (e.g. gzip-1c) */ ! virtual std::string Name(void) = 0; /** Benchmark comments --- 60,64 ---- \return a std::string representing current benchmark's identification (e.g. gzip-1c) */ ! virtual std::string Name(void); /** Benchmark comments Index: Benchmark.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Benchmark/Benchmark.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Benchmark.cpp 23 Jan 2007 16:51:26 -0000 1.2 --- Benchmark.cpp 26 Jan 2007 12:59:31 -0000 1.3 *************** *** 24,27 **** --- 24,33 ---- } + std::string Benchmark::Name(void) + { + std::cerr << "pure virtual method Benchmark::Name() called." << std::endl; + return(""); + } + Package *Benchmark::Package(void) { |