From 5b0657508c063abe938d460d796dde38ffcb592d Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 1 Mar 2002 12:25:11 +0000 Subject: [PATCH] Added comments about usage of cr_type typedef. [SVN r12992] --- include/boost/type_traits/type_traits_test.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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; + +