Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

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

Options
Warnings
Boost 1.73.0
C++2a
no pedantic

Author

anonymous

over 5 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a
prog.cc:8:103: error: 'this' cannot be used in a static member function declaration
  static auto foo(const P& r) -> std::enable_if_t<std::is_same_v<P, std::remove_reference_t<decltype(*this)>>, bool> {
                                                                                                      ^
prog.cc:8:28: warning: unused parameter 'r' [-Wunused-parameter]
  static auto foo(const P& r) -> std::enable_if_t<std::is_same_v<P, std::remove_reference_t<decltype(*this)>>, bool> {
                           ^
1 warning and 1 error generated.
Exit Code:
1