Commits

Anonymous committed cc3a810

Fix build errors.

On my system (x86_64-pc-linux-gnu gcc-4.4.4), when calling a parent
constructor that is a template instantiation, the template arguments
must be given.
ie. `: Benchmark("name")` must be `: Benchmark<unsigned>("name")`

Comments (0)

Files changed (3)

examples/fibonacci/FibBench.cpp

 
 #include <stdio.h>
 
-FibBench::FibBench(): Benchmark("Fibonacci")
+FibBench::FibBench(): Benchmark<unsigned>("Fibonacci")
 {
 
 }

examples/primes/PrimeNaive.cpp

 #include <math.h>
 
 PrimeNaive::PrimeNaive():
-	Benchmark("Naive")
+	Benchmark<unsigned>("Naive")
 {
 }
 

examples/primes/SieveEratosthenes.cpp

 #include "SieveEratosthenes.h"
 
 SieveEratosthenes::SieveEratosthenes():
-	Benchmark("Sieve of Eratosthenes")
+	Benchmark<unsigned>("Sieve of Eratosthenes")
 {
 }