diff --git a/include/boost/type_traits/type_traits_test.hpp b/include/boost/type_traits/type_traits_test.hpp index 231b8d4..fa45e38 100644 --- a/include/boost/type_traits/type_traits_test.hpp +++ b/include/boost/type_traits/type_traits_test.hpp @@ -277,6 +277,13 @@ typedef int (UDT::*cmf)(int) const; # pragma warning(push) # pragma warning(disable: 21) # endif +// +// This is intentional: +// r_type and cr_type should be the same type +// but some compilers wrongly apply cv-qualifiers +// to reference types (this may generate a warning +// on some compilers): +// typedef int& r_type; typedef const r_type cr_type; # ifdef BOOST_MSVC @@ -399,3 +406,5 @@ struct incomplete_type; + +