Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

clang HEAD 13.0.0 (https://github.com/llvm/llvm-project.git c4ed142e695f14ba5675ec6d12226ee706329a0f)

Options
Warnings
Boost 1.73.0
C++2b
no pedantic

Author

anonymous

over 3 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2b
prog.cc:30:36: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
        std::function<void()> f = [this, text, args...]()
                                   ^
prog.cc:56:14: note: in instantiation of function template specialization 'PrintTest::saveText<int, int, int, std::string>' requested here
        test.saveText(" Hello world ", 1, 2, 3, std::to_string(four));
             ^
prog.cc:30:36: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
        std::function<void()> f = [this, text, args...]()
                                   ^
prog.cc:60:14: note: in instantiation of function template specialization 'PrintTest::saveText<std::string, const char *, std::string>' requested here
        test.saveText(" Bye, Bye! ", a, b, std::string("yourself!"));
             ^
prog.cc:30:36: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
        std::function<void()> f = [this, text, args...]()
                                   ^
prog.cc:66:18: note: in instantiation of function template specialization 'PrintTest::saveText<std::string>' requested here
            test.saveText("", n);
                 ^
3 warnings generated.
 Hello world 1234
 Bye, Bye! Just be yourself!
0
1
2
3
4
5
Exit Code:
0