Fix result of add_reference<const void>.

Also update tests.
See https://svn.boost.org/trac/boost/ticket/11900.
This commit is contained in:
jzmaddock committed 2016-01-10 18:10:17 +00:00
1 parent 70afe1dd0d
commit 217c337233
4 files changed
+19 -4

No files matched your search

+3 -3
View File
@@ -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