Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 9 years ago

Language

Compiler

Options

Author

anonymous

over 9 years ago

$
prog.cc: In instantiation of 'Return maybe_skip(Func&&, Args&& ...) [with bool skip = true; Func = void (&)(int); Args = {int&}; Return = void]':
prog.cc:41:36:   required from here
prog.cc:10:23: error: compound literal of non-object type 'void'
         return Return{};            // <== #2
                       ^
prog.cc:10:23: error: return-statement with a value, in function returning 'void' [-fpermissive]
Exit Code:
1