Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 1c19900f9417bd0b832c1cb70863b2439a18647f)

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

Author

anonymous

over 4 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=gnu++2a
prog.cc:18:17: error: redefinition of 'swap' as different kind of symbol
    friend void swap(S& lhs, S& rhs);
                ^
prog.cc:13:41: note: previous definition is here
    inline constexpr cpo_impl::swap_cpo swap{};
                                        ^
prog.cc:26:3: error: no matching function for call to object of type 'const cpo_impl::swap_cpo'
  mystd::swap(s, s);
  ^~~~~~~~~~~
prog.cc:8:12: note: candidate function template not viable: requires 0 arguments, but 2 were provided
      void operator()();
           ^
2 errors generated.
Exit Code:
1