Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

Compiler

Options

Author

anonymous

almost 7 years ago

$
prog.cc: In instantiation of 'void A<T>::B::foo(Args&& ...) && [with P = int; Args = {}; T = int]':
prog.cc:20:26:   required from here
prog.cc:9:22: error: passing 'A<int>::B' as 'this' argument discards qualifiers [-fpermissive]
             A::foo<P>(std::forward<Args>(args)...);
             ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:8:14: note:   in call to 'void A<T>::B::foo(Args&& ...) && [with P = int; Args = {}; T = int]'
         void foo(Args &&... args) && {
              ^~~
Exit Code:
1