Added decaying to common_type in accordance with defect LWG2141

This commit is contained in:
AntonBikineev
2015-05-20 10:29:22 -05:00
parent ba1588ebc1
commit 34fe226814
2 changed files with 22 additions and 5 deletions
+6
View File
@@ -211,5 +211,11 @@ TT_TEST_BEGIN(common_type)
#ifndef BOOST_NO_LONG_LONG
BOOST_CHECK_TYPE4(tt::common_type<unsigned, char, boost::long_long_type>::type, boost::long_long_type);
#endif
//changes related to defect LWG2141
BOOST_CHECK_TYPE(tt::common_type<int&>::type, int);
BOOST_CHECK_TYPE(tt::common_type<const int>::type, int);
BOOST_CHECK_TYPE3(tt::common_type<const int, const int>::type, int);
BOOST_CHECK_TYPE3(tt::common_type<const int, const long>::type, long);
}
TT_TEST_END