Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 5 years ago

Language

C++

Compiler

gcc HEAD 11.0.0 20200907 (experimental)

Options
Warnings
Boost 1.73.0
C++2a(GNU)
no pedantic

Author

anonymous

about 5 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a
prog.cc: In instantiation of 'class A<std::unique_ptr<int> >':
prog.cc:15:31:   required from here
prog.cc:8:25: error: static assertion failed: T must be copy-assignable
    8 |     static_assert (std::is_copy_assignable_v<T>, "T must be copy-assignable");
      |                    ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
Exit Code:
1