Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

10 months ago

Language

C++

Compiler

clang 17.0.1

Options
Warnings
Boost 1.83.0
C++2b(GNU)
-pedantic

Author

anonymous

10 months ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.83.0-clang-17.0.1/include -std=gnu++2b -pedantic
prog.cc:18:28: warning: temporary whose address is used as value of local variable 'result' will be destroyed at the end of the full-expression [-Wdangling]
   18 |         auto result = std::minmax(GetCat(), GetDog());
      |                                   ^~~~~~~~
prog.cc:18:38: warning: temporary whose address is used as value of local variable 'result' will be destroyed at the end of the full-expression [-Wdangling]
   18 |         auto result = std::minmax(GetCat(), GetDog());
      |                                             ^~~~~~~~
2 warnings generated.
Min: �HW»dD�c*cat cat cat cat, Max: ���t»dD�c*dog dog dog dog
Exit Code:
0