Fix type_name<> for cv-qualified member pointers without variadic templates. Refs #145.

This commit is contained in:
Peter Dimov
2023-05-21 05:33:21 +03:00
parent c91f8fabff
commit 5eb54d1d36
2 changed files with 15 additions and 2 deletions
+9
View File
@@ -239,9 +239,18 @@ int main()
TEST(B(&)[1][2][3]);
TEST(B const volatile(***)[1][2][3]);
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) || !defined(BOOST_MSVC)
TEST(int A::*);
TEST(int const B::*);
#else
boost::core::type_name<int A::*>();
boost::core::type_name<int const B::*>();
#endif
#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
TEST(void(A::*)());