Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 11.0.0 (https://github.com/llvm/llvm-project.git fff6a1b0f1fe57b46379001db75952d2a06eab1f)

Options
Boost 1.72.0
C++2a(GNU)
no pedantic

$ clang++ prog.cc -I/opt/wandbox/boost-1.72.0/clang-head/include -std=gnu++2a
prog.cc:19:5: error: static_assert failed due to requirement 'std::is_same<int, double>::value' "Error!"
    static_assert(std::is_same<F, S>::value, "Error!");
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:25:5: note: in instantiation of function template specialization 'func<int, double>' requested here
    func(10, 3.14); // 未定義動作.できればエラーにしたい.
    ^
1 error generated.
Exit Code:
1