forked from boostorg/type_traits
Added comments about usage of cr_type typedef.
[SVN r12992]
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user