Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 6 years ago

Language

C++

Compiler

clang HEAD 9.0.0 (https://github.com/llvm-mirror/clang.git 6ed0749151866894a67a3e7eefdc1f3a547daa0e) (https://github.com/llvm-mirror/llvm.git a10a70238ace1093cad3adeb94814b422bd1b5c1)

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

Author

anonymous

almost 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/clang-head/include -std=gnu++2a
prog.cc:9:5: error: static_assert failed due to requirement '!std::is_const_v<const tracer>' "T is const. Fallback to copy."
    static_assert(!std::is_const_v<std::remove_reference_t<T>>, "T is const. Fallback to copy.");
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:45:15: note: in instantiation of function template specialization 'only_move<const tracer &>' requested here
            f(only_move(t)); // I expect move but copy due to lack of mutable
              ^
1 error generated.
Exit Code:
1