Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git e3de7bb263271008c55cc8bf3186a3a08999fbaa) (https://github.com/llvm-mirror/llvm.git 631cfd79b3240f5df03548a0a3eab519709743e9)

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

Author

anonymous

over 6 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-head/include -std=gnu++2a
prog.cc:9:5: error: no matching function for call to 'fun'
    fun(x);
    ^~~
prog.cc:5:96: note: candidate template ignored: requirement 'std::is_same_v<double, int> || std::is_same_v<double, char> || std::is_same_v<double, long>' was not satisfied [with T = double]
std::enable_if_t<std::is_same_v<T, int> || std::is_same_v<T, char> || std::is_same_v<T, long>> fun(T& arg) { ++arg; }
                                                                                               ^
1 error generated.
Exit Code:
1