Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

outcome.hpp

$
prog.cc: In function 'void bar()':
prog.cc:8:7: error: ignoring returned value of type 'outcome_v2_f1696316::result<void>', declared with attribute nodiscard [-Werror=unused-result]
   foo();
       ^
prog.cc:4:19: note: in call to 'outcome_v2_f1696316::result<void> foo()', declared here
 out::result<void> foo();
                   ^~~
In file included from prog.cc:1:0:
outcome.hpp:4925:25: note: 'outcome_v2_f1696316::result<void>' declared here
 class OUTCOME_NODISCARD result : public detail::result_final<R, S, NoValuePolicy>
                         ^~~~~~
cc1plus: all warnings being treated as errors
Exit Code:
1