From 81ce4693f67657c61c4d872297ec019fb4d58893 Mon Sep 17 00:00:00 2001 From: morinmorin Date: Wed, 20 Sep 2017 23:44:35 +0900 Subject: [PATCH] Add tests for result_of in C++11. --- test/result_of_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/result_of_test.cpp b/test/result_of_test.cpp index 9ea72f1..290043b 100644 --- a/test/result_of_test.cpp +++ b/test/result_of_test.cpp @@ -297,6 +297,12 @@ int main() BOOST_STATIC_ASSERT((is_same(void)>::type, cv_overload_check >::value)); BOOST_STATIC_ASSERT((is_same(void)>::type, cv_overload_check >::value)); BOOST_STATIC_ASSERT((is_same(void)>::type, cv_overload_check >::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)); + BOOST_STATIC_ASSERT((is_same::type, int>::value)); + #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) BOOST_STATIC_ASSERT((is_same::type, short>::value)); BOOST_STATIC_ASSERT((is_same::type, int>::value));