diff --git a/test/helpers/metafunctions.hpp b/test/helpers/metafunctions.hpp index f5f13851..137aeca1 100644 --- a/test/helpers/metafunctions.hpp +++ b/test/helpers/metafunctions.hpp @@ -8,6 +8,7 @@ #include #include +#include namespace test { template @@ -23,7 +24,9 @@ namespace test { BOOST_STATIC_CONSTANT(bool, value = sizeof(long) == sizeof(flip( - ((Container*)0)->insert(*(typename Container::value_type*)0)))); + (boost::declval()) + ->insert( + boost::declval())))); }; }