forked from boostorg/type_traits
Added decaying to common_type in accordance with defect LWG2141
This commit is contained in:
1 parent
ba1588ebc1
commit
34fe226814
2 files changed
+22
-5
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user