From 7867c4d8c990d1931664b13c0e84063c266f16f4 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 5 Jan 2004 21:27:28 +0000 Subject: [PATCH] Fix some bugs with result_of and bring it up to conformance with the TR [SVN r1861] --- result_of_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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));