Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 4 years ago

Language

C++

Compiler

gcc HEAD 11.0.1 20210303 (experimental)

Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic
Raw compiler options
-pthread

Author

anonymous

about 4 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2b -pthread

main:  std::this_thread::get_id(): 140280233478016
        promise_type::promise_type:  std::this_thread::get_id(): 140280233478016
    MyFuture::get:  std::this_thread::get_id(): 140280233478016
        promise_type::return_value:  std::this_thread::get_id(): 140280128513792
2021
        promise_type::final_suspend:  std::this_thread::get_id(): 140280128513792
res: 2021

        promise_type::~promise_type:  std::this_thread::get_id(): 140280233478016
Exit Code:
0