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 adccc0bfa301005367d6b89a3aacc07ef0166e64)

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:8:5: error: no matching function for call to 'swap'
    std::swap(a, b);
    ^~~~~~~~~
/opt/wandbox/clang-head/include/c++/v1/type_traits:4004:1: note: candidate template ignored: requirement 'is_move_assignable<S>::value' was not satisfied [with _Tp = S]
swap(_Tp& __x, _Tp& __y) _NOEXCEPT_(is_nothrow_move_constructible<_Tp>::value &&
^
/opt/wandbox/clang-head/include/c++/v1/type_traits:4017:1: note: candidate template ignored: could not match '_Tp [_Np]' against 'S'
swap(_Tp (&__a)[_Np], _Tp (&__b)[_Np]) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value)
^
/opt/wandbox/clang-head/include/c++/v1/utility:629:1: note: candidate template ignored: could not match 'pair<type-parameter-0-0, type-parameter-0-1>' against 'S'
swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y)
^
/opt/wandbox/clang-head/include/c++/v1/tuple:174:6: note: candidate template ignored: could not match '__tuple_leaf<_Ip, type-parameter-0-1, >' against 'S'
void swap(__tuple_leaf<_Ip, _Hp, _Ep>& __x, __tuple_leaf<_Ip, _Hp, _Ep>& __y)
     ^
/opt/wandbox/clang-head/include/c++/v1/tuple:999:1: note: candidate template ignored: could not match 'tuple<type-parameter-0-0...>' against 'S'
swap(tuple<_Tp...>& __t, tuple<_Tp...>& __u)
^
/opt/wandbox/clang-head/include/c++/v1/memory:2117:6: note: candidate template ignored: could not match '__compressed_pair<type-parameter-0-0, type-parameter-0-1>' against 'S'
void swap(__compressed_pair<_T1, _T2>& __x, __compressed_pair<_T1, _T2>& __y)
     ^
/opt/wandbox/clang-head/include/c++/v1/memory:2655:1: note: candidate template ignored: could not match 'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'S'
swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);}
^
/opt/wandbox/clang-head/include/c++/v1/memory:4275:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-0>' against 'S'
swap(shared_ptr<_Tp>& __x, shared_ptr<_Tp>& __y) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/memory:4565:1: note: candidate template ignored: could not match 'weak_ptr<type-parameter-0-0>' against 'S'
swap(weak_ptr<_Tp>& __x, weak_ptr<_Tp>& __y) _NOEXCEPT
^
/opt/wandbox/clang-head/include/c++/v1/functional:2608:1: note: candidate template ignored: could not match 'function<type-parameter-0-0 (type-parameter-0-1...)>' against 'S'
swap(function<_Rp(_ArgTypes...)>& __x, function<_Rp(_ArgTypes...)>& __y) _NOEXCEPT
^
1 error generated.
Exit Code:
1