Author
anonymous
over 2 years ago
Language
C++
Compiler
gcc HEAD 13.0.0 20221123 (experimental)
Options
Warnings
Don't Use Boost
C++2a
no pedantic
Author
anonymous
over 2 years ago
$ g++ prog.cc -Wall -Wextra -std=c++2a
prog.cc:11:62: error: no matching function for call to 'is_pointer_interconvertible_with_class<C>(int B::*)'
11 | static_assert( std::is_pointer_interconvertible_with_class<C>( &C::b ) );
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/13.0.0/type_traits:3549:5: note: candidate: 'template<class _Tp, class _Mem> constexpr bool std::is_pointer_interconvertible_with_class(_Mem _Tp::*)'
3549 | is_pointer_interconvertible_with_class(_Mem _Tp::*__mp) noexcept
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/13.0.0/type_traits:3549:5: note: template argument deduction/substitution failed:
prog.cc:11:62: note: mismatched types 'C' and 'B'
11 | static_assert( std::is_pointer_interconvertible_with_class<C>( &C::b ) );
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
Exit Code:
1