From be7cc35781e348f443abbd3910519707aea11904 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 18 Oct 2008 21:33:59 +0000 Subject: Lower glib/glibmm dependency to 2.14. Fix optional parameters all over the palce because waf is retarded and sets failed check variables to ##some#stupid#name#like#this instead of false. Portability fixes (Ingen (except GUI) and all dependencies builds on OSX). git-svn-id: http://svn.drobilla.net/lad/trunk/raul@1681 a436a847-0d15-0410-975c-d299462d15a1 --- tests/table_test.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/table_test.cpp b/tests/table_test.cpp index f0d1883..3fdde92 100644 --- a/tests/table_test.cpp +++ b/tests/table_test.cpp @@ -3,14 +3,18 @@ #include #include #include -#include #include #include #include #include -#define BOOST_MULTI_INDEX_DISABLE_SERIALIZATION 1 -#include +//#define WITH_TR1 1 + +#ifdef WITH_TR1 + #define BOOST_MULTI_INDEX_DISABLE_SERIALIZATION 1 + #include + #include +#endif using namespace Raul; using namespace std; @@ -347,6 +351,7 @@ benchmark(size_t n) cout << "Raul::Table time to lookup " << n << " values: \t" << delta_t << endl; +#ifdef WITH_TR1 /** boost::hash && std::unordered_map **/ tr1::unordered_map > um; @@ -374,5 +379,6 @@ benchmark(size_t n) delta_t = (t2.tv_sec - t1.tv_sec) + (t2.tv_usec - t1.tv_usec) * 0.000001f; cout << "tr1::unordered_map + boost::hash time to lookup " << n << " values: \t" << delta_t << endl; +#endif } -- cgit v1.2.1