diff --git a/result_of_test.cpp b/result_of_test.cpp index a3034e0..cea59ee 100644 --- a/result_of_test.cpp +++ b/result_of_test.cpp @@ -7,13 +7,13 @@ class int_result_type { typedef int result_type; }; class int_result_of { - template struct result_of { typedef int type; }; + template struct result { typedef int type; }; }; class int_result_type_and_float_result_of { typedef int result_type; - template struct result_of { typedef float type; }; + template struct result { typedef float type; }; }; struct X {}; @@ -27,6 +27,7 @@ int main() BOOST_STATIC_ASSERT((is_same::type, int>::value)); BOOST_STATIC_ASSERT((is_same::type, int>::value)); + BOOST_STATIC_ASSERT((is_same::type, void>::value)); BOOST_STATIC_ASSERT((is_same::type, int>::value)); BOOST_STATIC_ASSERT((is_same::type, int>::value)); BOOST_STATIC_ASSERT((is_same::type, int>::value));