forked from boostorg/type_traits
Fix result of add_reference<const void>.
Also update tests. See https://svn.boost.org/trac/boost/ticket/11900.
This commit is contained in:
1 parent
70afe1dd0d
commit
217c337233
4 files changed
+19
-4
No files matched your search
@@ -49,9 +49,9 @@ template <class T> struct add_reference<T&>
|
||||
// these full specialisations are always required:
|
||||
template <> struct add_reference<void> { typedef void type; };
|
||||
#ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS
|
||||
template <> struct add_reference<const void> { typedef void type; };
|
||||
template <> struct add_reference<const volatile void> { typedef void type; };
|
||||
template <> struct add_reference<volatile void> { typedef void type; };
|
||||
template <> struct add_reference<const void> { typedef const void type; };
|
||||
template <> struct add_reference<const volatile void> { typedef const volatile void type; };
|
||||
template <> struct add_reference<volatile void> { typedef volatile void type; };
|
||||
#endif
|
||||
|
||||
} // namespace boost
|
||||
|
||||
Reference in new issue
Block a user