K 10 svn:author V 6 jbeich K 8 svn:date V 27 2018-09-01T13:12:37.054833Z K 7 svn:log V 8054 databases/hamsterdb: unbreak build with Clang 6 (C++14 by default) In file included from 4env/env_local.cc:21: In file included from ./2device/device_factory.h:31: ./2device/device_disk.h:72:7: error: no matching function for call to 'swap' std::swap(m_state, state); ^~~~~~~~~ /usr/include/c++/v1/type_traits:4643:1: note: candidate template ignored: requirement 'is_move_constructible::value' was not satisfied [with _Tp = hamsterdb::DiskDevice::State] swap(_Tp& __x, _Tp& __y) _NOEXCEPT_(is_nothrow_move_constructible<_Tp>::value && ^ /usr/include/c++/v1/utility:268:1: note: candidate template ignored: could not match '_Tp [_Np]' against 'hamsterdb::DiskDevice::State' swap(_Tp (&__a)[_Np], _Tp (&__b)[_Np]) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value) ^ /usr/include/c++/v1/utility:609:1: note: candidate template ignored: could not match 'pair' against 'hamsterdb::DiskDevice::State' swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) ^ /usr/include/c++/v1/tuple:163:6: note: candidate template ignored: could not match '__tuple_leaf<_Ip, type-parameter-0-1, >' against 'hamsterdb::DiskDevice::State' void swap(__tuple_leaf<_Ip, _Hp, _Ep>& __x, __tuple_leaf<_Ip, _Hp, _Ep>& __y) ^ /usr/include/c++/v1/tuple:949:1: note: candidate template ignored: could not match 'tuple' against 'hamsterdb::DiskDevice::State' swap(tuple<_Tp...>& __t, tuple<_Tp...>& __u) ^ /usr/include/c++/v1/memory:2257:6: note: candidate template ignored: could not match '__compressed_pair' against 'hamsterdb::DiskDevice::State' void swap(__compressed_pair<_T1, _T2>& __x, __compressed_pair<_T1, _T2>& __y) ^ /usr/include/c++/v1/memory:2905:1: note: candidate template ignored: could not match 'unique_ptr' against 'hamsterdb::DiskDevice::State' swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) _NOEXCEPT {__x.swap(__y);} ^ /usr/include/c++/v1/memory:4887:1: note: candidate template ignored: could not match 'shared_ptr' against 'hamsterdb::DiskDevice::State' swap(shared_ptr<_Tp>& __x, shared_ptr<_Tp>& __y) _NOEXCEPT ^ /usr/include/c++/v1/memory:5186:1: note: candidate template ignored: could not match 'weak_ptr' against 'hamsterdb::DiskDevice::State' swap(weak_ptr<_Tp>& __x, weak_ptr<_Tp>& __y) _NOEXCEPT ^ /usr/include/c++/v1/string:3889:1: note: candidate template ignored: could not match 'basic_string' against 'hamsterdb::DiskDevice::State' swap(basic_string<_CharT, _Traits, _Allocator>& __lhs, ^ /usr/include/c++/v1/__mutex_base:277:1: note: candidate template ignored: could not match 'unique_lock' against 'hamsterdb::DiskDevice::State' swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) _NOEXCEPT ^ /usr/include/c++/v1/functional:1975:1: note: candidate template ignored: could not match 'function' against 'hamsterdb::DiskDevice::State' swap(function<_Rp(_ArgTypes...)>& __x, function<_Rp(_ArgTypes...)>& __y) _NOEXCEPT ^ /usr/include/c++/v1/__bit_reference:86:1: note: candidate template ignored: could not match '__bit_reference::value>' against 'hamsterdb::DiskDevice::State' swap(__bit_reference<_Cp> __x, __bit_reference<_Cp> __y) _NOEXCEPT ^ /usr/include/c++/v1/__bit_reference:96:1: note: candidate template ignored: could not match '__bit_reference::value>' against 'hamsterdb::DiskDevice::State' swap(__bit_reference<_Cp> __x, __bit_reference<_Dp> __y) _NOEXCEPT ^ /usr/include/c++/v1/__bit_reference:106:1: note: candidate template ignored: could not match '__bit_reference::value>' against 'hamsterdb::DiskDevice::State' swap(__bit_reference<_Cp> __x, bool& __y) _NOEXCEPT ^ /usr/include/c++/v1/__bit_reference:116:1: note: candidate template ignored: could not match '__bit_reference::value>' against 'hamsterdb::DiskDevice::State' swap(bool& __x, __bit_reference<_Cp> __y) _NOEXCEPT ^ /usr/include/c++/v1/__tree:2681:1: note: candidate template ignored: could not match '__tree' against 'hamsterdb::DiskDevice::State' swap(__tree<_Tp, _Compare, _Allocator>& __x, ^ /usr/include/c++/v1/map:553:1: note: candidate template ignored: could not match '__map_value_compare' against 'hamsterdb::DiskDevice::State' swap(__map_value_compare<_Key, _CP, _Compare, __b>& __x, ^ /usr/include/c++/v1/map:1452:1: note: candidate template ignored: could not match 'map' against 'hamsterdb::DiskDevice::State' swap(map<_Key, _Tp, _Compare, _Allocator>& __x, ^ /usr/include/c++/v1/map:1917:1: note: candidate template ignored: could not match 'multimap' against 'hamsterdb::DiskDevice::State' swap(multimap<_Key, _Tp, _Compare, _Allocator>& __x, ^ /usr/include/c++/v1/sstream:431:1: note: candidate template ignored: could not match 'basic_stringbuf' against 'hamsterdb::DiskDevice::State' swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, ^ /usr/include/c++/v1/sstream:718:1: note: candidate template ignored: could not match 'basic_istringstream' against 'hamsterdb::DiskDevice::State' swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, ^ /usr/include/c++/v1/sstream:836:1: note: candidate template ignored: could not match 'basic_ostringstream' against 'hamsterdb::DiskDevice::State' swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, ^ /usr/include/c++/v1/sstream:955:1: note: candidate template ignored: could not match 'basic_stringstream' against 'hamsterdb::DiskDevice::State' swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, ^ /usr/include/c++/v1/__split_buffer:627:1: note: candidate template ignored: could not match '__split_buffer' against 'hamsterdb::DiskDevice::State' swap(__split_buffer<_Tp, _Allocator>& __x, __split_buffer<_Tp, _Allocator>& __y) ^ /usr/include/c++/v1/vector:3358:1: note: candidate template ignored: could not match 'vector' against 'hamsterdb::DiskDevice::State' swap(vector<_Tp, _Allocator>& __x, vector<_Tp, _Allocator>& __y) ^ /usr/include/c++/v1/list:2411:1: note: candidate template ignored: could not match 'list' against 'hamsterdb::DiskDevice::State' swap(list<_Tp, _Alloc>& __x, list<_Tp, _Alloc>& __y) ^ /usr/include/c++/v1/deque:2900:1: note: candidate template ignored: could not match 'deque' against 'hamsterdb::DiskDevice::State' swap(deque<_Tp, _Allocator>& __x, deque<_Tp, _Allocator>& __y) ^ /usr/include/c++/v1/set:800:1: note: candidate template ignored: could not match 'set' against 'hamsterdb::DiskDevice::State' swap(set<_Key, _Compare, _Allocator>& __x, ^ /usr/include/c++/v1/set:1209:1: note: candidate template ignored: could not match 'multiset' against 'hamsterdb::DiskDevice::State' swap(multiset<_Key, _Compare, _Allocator>& __x, ^ /usr/include/c++/v1/array:286:1: note: candidate template ignored: could not match 'array' against 'hamsterdb::DiskDevice::State' swap(array<_Tp, _Size>& __x, array<_Tp, _Size>& __y) ^ Reported by: pkg-fallout END