Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 7 years ago

Language

Compiler

Options

Author

anonymous

about 7 years ago

$
prog.cc:11:24: error: no matching function for call to 'A<int X::*>::c()'
 int x = A<int X::*>::c();
                        ^
prog.cc:6:17: note: candidate: 'template<class TT> static decltype (A<#'offset_type' not supported by simple_type_specifier#)#'offset_type' not supported by direct_abstract_declarator#>::c::o.*A<#'offset_type' not supported by simple_type_specifier#)#'offset_type' not supported by direct_abstract_declarator#>::c::p) A<int U::*>::c(int U::*, TT) [with TT = TT; U = X]'
     static auto c(int U::*p, TT o) -> decltype(o.*p);
                 ^
prog.cc:6:17: note:   template argument deduction/substitution failed:
prog.cc:11:24: note:   candidate expects 2 arguments, 0 provided
 int x = A<int X::*>::c();
                        ^
Exit Code:
1