Added comments about usage of cr_type typedef.

[SVN r12992]
This commit is contained in:
John Maddock
2002-03-01 12:25:11 +00:00
parent 1eccbcddba
commit 5b0657508c

View File

@ -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;