Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ====================[ Build | hash-map-svevash | Debug ]========================
- "C:\Program Files\JetBrains\CLion 2018.3.4\bin\cmake\win\bin\cmake.exe" --build C:\Users\Svetlana\CLionProjects\hash-map-svevash\cmake-build-debug --target hash-map-svevash -- -j 2
- Scanning dependencies of target hash-map-svevash
- [ 50%] Building CXX object CMakeFiles/hash-map-svevash.dir/main.cpp.obj
- In file included from C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:22:
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::try_emplace(fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type&&, _Args&& ...) [with _Args = {int, int}; K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:33:63: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:472:5: warning: no return statement in function returning non-void [-Wreturn-type]
- }
- ^
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::try_emplace(fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type&&, _Args&& ...) [with _Args = {int}; K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:52:54: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:472:5: warning: no return statement in function returning non-void [-Wreturn-type]
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::try_emplace(const key_type&, _Args&& ...) [with _Args = {int}; K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:54:39: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:464:14: error: unable to deduce 'std::initializer_list<auto>' from '{k, std::forward<int>((* & args#0))}'
- auto p = {k, mapped_type(std::forward<_Args>(args)...)};
- ^
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:464:14: note: deduced conflicting types for parameter 'auto' ('std::__cxx11::basic_string<char>' and 'int')
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:467:5: warning: no return statement in function returning non-void [-Wreturn-type]
- }
- ^
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::try_emplace(const key_type&, _Args&& ...) [with _Args = {float}; K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:56:47: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:464:14: error: unable to deduce 'std::initializer_list<auto>' from '{k, (fefu::hash_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, fefu::allocator<std::pair<const std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int> > >::mapped_type)forward()((std::remove_reference<float>::type&)(float*)args#0)}'
- auto p = {k, mapped_type(std::forward<_Args>(args)...)};
- ^
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:464:14: note: deduced conflicting types for parameter 'auto' ('std::__cxx11::basic_string<char>' and 'int')
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:467:5: warning: no return statement in function returning non-void [-Wreturn-type]
- }
- ^
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type&&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const std::__cxx11::basic_string<char>, int>]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:94:73: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:532:5: warning: no return statement in function returning non-void [-Wreturn-type]
- }
- ^
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(const value_type&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const std::__cxx11::basic_string<char>, int>]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:96:30: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:514:29: error: no match for 'operator=' (operand types are 'fefu::hash_map<std::__cxx11::basic_string<char>, int>::value_type' {aka 'std::pair<const std::__cxx11::basic_string<char>, int>'} and 'const int')
- data[i] = x.second;
- ~~~~~~~~^~~~~~~~~~
- In file included from C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/stl_algobase.h:64,
- from C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/char_traits.h:39,
- from C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/string:40,
- from C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:18:
- C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/stl_pair.h:367:7: note: candidate: 'std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(typename std::conditional<std::__and_<std::is_copy_assignable<_Tp>, std::is_copy_assignable<_T2> >::value, const std::pair<_T1, _T2>&, const std::__nonesuch_no_braces&>::type) [with _T1 = const std::__cxx11::basic_string<char>; _T2 = int; typename std::conditional<std::__and_<std::is_copy_assignable<_Tp>, std::is_copy_assignable<_T2> >::value, const std::pair<_T1, _T2>&, const std::__nonesuch_no_braces&>::type = const std::__nonesuch_no_braces&]'
- operator=(typename conditional<
- ^~~~~~~~
- C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/stl_pair.h:367:7: note: no known conversion for argument 1 from 'const int' to 'std::conditional<false, const std::pair<const std::__cxx11::basic_string<char>, int>&, const std::__nonesuch_no_braces&>::type' {aka 'const std::__nonesuch_no_braces&'}
- C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/stl_pair.h:384:7: note: candidate: 'std::pair<_T1, _T2>& std::pair<_T1, _T2>::operator=(typename std::conditional<std::__and_<std::is_move_assignable<_Tp>, std::is_move_assignable<_T2> >::value, std::pair<_T1, _T2>&&, std::__nonesuch_no_braces&&>::type) [with _T1 = const std::__cxx11::basic_string<char>; _T2 = int; typename std::conditional<std::__and_<std::is_move_assignable<_Tp>, std::is_move_assignable<_T2> >::value, std::pair<_T1, _T2>&&, std::__nonesuch_no_braces&&>::type = std::__nonesuch_no_braces&&]'
- operator=(typename conditional<
- ^~~~~~~~
- C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/stl_pair.h:384:7: note: no known conversion for argument 1 from 'const int' to 'std::conditional<false, std::pair<const std::__cxx11::basic_string<char>, int>&&, std::__nonesuch_no_braces&&>::type' {aka 'std::__nonesuch_no_braces&&'}
- C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/stl_pair.h:400:2: note: candidate: 'template<class _U1, class _U2> typename std::enable_if<std::__and_<std::is_assignable<_T1&, const _U1&>, std::is_assignable<_T2&, const _U2&> >::value, std::pair<_T1, _T2>&>::type std::pair<_T1, _T2>::operator=(const std::pair<_U1, _U2>&) [with _U1 = _U1; _U2 = _U2; _T1 = const std::__cxx11::basic_string<char>; _T2 = int]'
- operator=(const pair<_U1, _U2>& __p)
- ^~~~~~~~
- C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/stl_pair.h:400:2: note: template argument deduction/substitution failed:
- In file included from C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:22:
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:514:29: note: mismatched types 'const std::pair<_T1, _T2>' and 'const int'
- data[i] = x.second;
- ~~~~~~~~^~~~~~~~~~
- In file included from C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/stl_algobase.h:64,
- from C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/char_traits.h:39,
- from C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/string:40,
- from C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:18:
- C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/stl_pair.h:411:2: note: candidate: 'template<class _U1, class _U2> typename std::enable_if<std::__and_<std::is_assignable<_T1&, _U1&&>, std::is_assignable<_T2&, _U2&&> >::value, std::pair<_T1, _T2>&>::type std::pair<_T1, _T2>::operator=(std::pair<_U1, _U2>&&) [with _U1 = _U1; _U2 = _U2; _T1 = const std::__cxx11::basic_string<char>; _T2 = int]'
- operator=(pair<_U1, _U2>&& __p)
- ^~~~~~~~
- C:/PROGRA~2/MINGW-~1/I686-8~1.0-P/mingw32/lib/gcc/i686-w64-mingw32/8.1.0/include/c++/bits/stl_pair.h:411:2: note: template argument deduction/substitution failed:
- In file included from C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:22:
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:514:29: note: mismatched types 'std::pair<_T1, _T2>' and 'const int'
- data[i] = x.second;
- ~~~~~~~~^~~~~~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator fefu::hash_map<K, T, Hash, Pred, Alloc>::find(const key_type&) const [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator = fefu::hash_map_const_iterator<std::pair<const int, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = int]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:124:13: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:783:49: error: binding reference of type 'std::vector<char>&' to 'const std::vector<char>' discards qualifiers
- return const_iterator(data, state, i);
- ^~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:208:3: note: initializing argument 2 of 'fefu::hash_map_const_iterator<ValueType>::hash_map_const_iterator(fefu::hash_map_const_iterator<ValueType>::pointer, std::vector<char>&, size_t) [with ValueType = std::pair<const int, int>; fefu::hash_map_const_iterator<ValueType>::pointer = const std::pair<const int, int>*; size_t = unsigned int]'
- hash_map_const_iterator(pointer p, std::vector<char> &st, size_t pos): start(p), state(st), position(pos) {}
- ^~~~~~~~~~~~~~~~~~~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator fefu::hash_map<K, T, Hash, Pred, Alloc>::end() const [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator = fefu::hash_map_const_iterator<std::pair<const int, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:124:13: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:403:37: error: binding reference of type 'std::vector<char>&' to 'const std::vector<char>' discards qualifiers
- return const_iterator(data, state, state.size());
- ^~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:208:3: note: initializing argument 2 of 'fefu::hash_map_const_iterator<ValueType>::hash_map_const_iterator(fefu::hash_map_const_iterator<ValueType>::pointer, std::vector<char>&, size_t) [with ValueType = std::pair<const int, int>; fefu::hash_map_const_iterator<ValueType>::pointer = const std::pair<const int, int>*; size_t = unsigned int]'
- hash_map_const_iterator(pointer p, std::vector<char> &st, size_t pos): start(p), state(st), position(pos) {}
- ^~~~~~~~~~~~~~~~~~~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator fefu::hash_map<K, T, Hash, Pred, Alloc>::begin() const [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator = fefu::hash_map_const_iterator<std::pair<const int, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:146:42: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:382:37: error: binding reference of type 'std::vector<char>&' to 'const std::vector<char>' discards qualifiers
- return const_iterator(data, state, 0);
- ^~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:208:3: note: initializing argument 2 of 'fefu::hash_map_const_iterator<ValueType>::hash_map_const_iterator(fefu::hash_map_const_iterator<ValueType>::pointer, std::vector<char>&, size_t) [with ValueType = std::pair<const int, int>; fefu::hash_map_const_iterator<ValueType>::pointer = const std::pair<const int, int>*; size_t = unsigned int]'
- hash_map_const_iterator(pointer p, std::vector<char> &st, size_t pos): start(p), state(st), position(pos) {}
- ^~~~~~~~~~~~~~~~~~~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type&&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:471:9: required from 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::try_emplace(fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type&&, _Args&& ...) [with _Args = {int, int}; K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:33:63: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:532:5: warning: no return statement in function returning non-void [-Wreturn-type]
- }
- ^
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = fefu::hash_map_iterator<std::pair<const int, int> >; K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:709:9: required from 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::merge(fefu::hash_map<K, T, _H2, _P2, Alloc>&) [with _H2 = std::hash<int>; _P2 = std::equal_to<int>; K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:166:40: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: error: no matching function for call to 'fefu::hash_map<int, int>::insert(fefu::hash_map_iterator<std::pair<const int, int> >&)'
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(const value_type&) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const int, int>]'
- std::pair<iterator, bool> insert(const value_type& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: no known conversion for argument 1 from 'fefu::hash_map_iterator<std::pair<const int, int> >' to 'const value_type&' {aka 'const std::pair<const int, int>&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type&&) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const int, int>]'
- std::pair<iterator, bool> insert(value_type&& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: no known conversion for argument 1 from 'fefu::hash_map_iterator<std::pair<const int, int> >' to 'fefu::hash_map<int, int>::value_type&&' {aka 'std::pair<const int, int>&&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: candidate: 'template<class _InputIterator> void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]'
- void insert(_InputIterator first, _InputIterator last) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: template argument deduction/substitution failed:
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: note: candidate expects 2 arguments, 1 provided
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: candidate: 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]'
- void insert(std::initializer_list<value_type> l) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: no known conversion for argument 1 from 'fefu::hash_map_iterator<std::pair<const int, int> >' to 'std::initializer_list<std::pair<const int, int> >'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = fefu::hash_map_iterator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:1024:9: required from 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::rehash(fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type = unsigned int]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:870:13: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator[](fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type&&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type = main()::TestStruct; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:45:43: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: error: no matching function for call to 'fefu::hash_map<std::__cxx11::basic_string<char>, main()::TestStruct>::insert(fefu::hash_map_iterator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >&)'
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(const value_type&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>]'
- std::pair<iterator, bool> insert(const value_type& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: no known conversion for argument 1 from 'fefu::hash_map_iterator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >' to 'const value_type&' {aka 'const std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type&&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>]'
- std::pair<iterator, bool> insert(value_type&& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: no known conversion for argument 1 from 'fefu::hash_map_iterator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >' to 'fefu::hash_map<std::__cxx11::basic_string<char>, main()::TestStruct>::value_type&&' {aka 'std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>&&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: candidate: 'template<class _InputIterator> void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >]'
- void insert(_InputIterator first, _InputIterator last) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: template argument deduction/substitution failed:
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: note: candidate expects 2 arguments, 1 provided
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: candidate: 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >]'
- void insert(std::initializer_list<value_type> l) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: no known conversion for argument 1 from 'fefu::hash_map_iterator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >' to 'std::initializer_list<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = fefu::hash_map_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >; K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:1024:9: required from 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::rehash(fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type = unsigned int]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:837:13: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator[](const key_type&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type = int; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:59:18: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: error: no matching function for call to 'fefu::hash_map<std::__cxx11::basic_string<char>, int>::insert(fefu::hash_map_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >&)'
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(const value_type&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const std::__cxx11::basic_string<char>, int>]'
- std::pair<iterator, bool> insert(const value_type& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: no known conversion for argument 1 from 'fefu::hash_map_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >' to 'const value_type&' {aka 'const std::pair<const std::__cxx11::basic_string<char>, int>&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type&&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const std::__cxx11::basic_string<char>, int>]'
- std::pair<iterator, bool> insert(value_type&& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: no known conversion for argument 1 from 'fefu::hash_map_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >' to 'fefu::hash_map<std::__cxx11::basic_string<char>, int>::value_type&&' {aka 'std::pair<const std::__cxx11::basic_string<char>, int>&&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: candidate: 'template<class _InputIterator> void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >]'
- void insert(_InputIterator first, _InputIterator last) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: template argument deduction/substitution failed:
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: note: candidate expects 2 arguments, 1 provided
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: candidate: 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >]'
- void insert(std::initializer_list<value_type> l) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: no known conversion for argument 1 from 'fefu::hash_map_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >' to 'std::initializer_list<std::pair<const std::__cxx11::basic_string<char>, int> >'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = const std::pair<const int, int>*; K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:564:9: required from 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:312:9: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>::hash_map(std::initializer_list<std::pair<const _Key, _Tp> >, fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type = unsigned int]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:118:58: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: error: no matching function for call to 'fefu::hash_map<int, int>::insert(const std::pair<const int, int>*&)'
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(const value_type&) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const int, int>]'
- std::pair<iterator, bool> insert(const value_type& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: no known conversion for argument 1 from 'const std::pair<const int, int>*' to 'const value_type&' {aka 'const std::pair<const int, int>&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type&&) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const int, int>]'
- std::pair<iterator, bool> insert(value_type&& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: no known conversion for argument 1 from 'const std::pair<const int, int>*' to 'fefu::hash_map<int, int>::value_type&&' {aka 'std::pair<const int, int>&&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: candidate: 'template<class _InputIterator> void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]'
- void insert(_InputIterator first, _InputIterator last) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: template argument deduction/substitution failed:
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: note: candidate expects 2 arguments, 1 provided
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: candidate: 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]'
- void insert(std::initializer_list<value_type> l) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: no known conversion for argument 1 from 'const std::pair<const int, int>*' to 'std::initializer_list<std::pair<const int, int> >'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator fefu::hash_map<K, T, Hash, Pred, Alloc>::begin() const [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator = fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:319:9: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator=(const fefu::hash_map<K, T, Hash, Pred, Alloc>&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:1025:15: required from 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::rehash(fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type = unsigned int]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:870:13: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator[](fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type&&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type = main()::TestStruct; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:45:43: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:382:37: error: binding reference of type 'std::vector<char>&' to 'const std::vector<char>' discards qualifiers
- return const_iterator(data, state, 0);
- ^~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:208:3: note: initializing argument 2 of 'fefu::hash_map_const_iterator<ValueType>::hash_map_const_iterator(fefu::hash_map_const_iterator<ValueType>::pointer, std::vector<char>&, size_t) [with ValueType = std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>; fefu::hash_map_const_iterator<ValueType>::pointer = const std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>*; size_t = unsigned int]'
- hash_map_const_iterator(pointer p, std::vector<char> &st, size_t pos): start(p), state(st), position(pos) {}
- ^~~~~~~~~~~~~~~~~~~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator fefu::hash_map<K, T, Hash, Pred, Alloc>::end() const [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator = fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:319:9: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator=(const fefu::hash_map<K, T, Hash, Pred, Alloc>&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:1025:15: required from 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::rehash(fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type = unsigned int]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:870:13: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator[](fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type&&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type = main()::TestStruct; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:45:43: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:403:37: error: binding reference of type 'std::vector<char>&' to 'const std::vector<char>' discards qualifiers
- return const_iterator(data, state, state.size());
- ^~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:208:3: note: initializing argument 2 of 'fefu::hash_map_const_iterator<ValueType>::hash_map_const_iterator(fefu::hash_map_const_iterator<ValueType>::pointer, std::vector<char>&, size_t) [with ValueType = std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>; fefu::hash_map_const_iterator<ValueType>::pointer = const std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>*; size_t = unsigned int]'
- hash_map_const_iterator(pointer p, std::vector<char> &st, size_t pos): start(p), state(st), position(pos) {}
- ^~~~~~~~~~~~~~~~~~~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:319:9: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator=(const fefu::hash_map<K, T, Hash, Pred, Alloc>&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:1025:15: required from 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::rehash(fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type = unsigned int]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:870:13: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator[](fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type&&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type = main()::TestStruct; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:45:43: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: error: no matching function for call to 'fefu::hash_map<std::__cxx11::basic_string<char>, main()::TestStruct>::insert(fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >&)'
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(const value_type&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>]'
- std::pair<iterator, bool> insert(const value_type& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: no known conversion for argument 1 from 'fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >' to 'const value_type&' {aka 'const std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type&&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>]'
- std::pair<iterator, bool> insert(value_type&& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: no known conversion for argument 1 from 'fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >' to 'fefu::hash_map<std::__cxx11::basic_string<char>, main()::TestStruct>::value_type&&' {aka 'std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct>&&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: candidate: 'template<class _InputIterator> void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >]'
- void insert(_InputIterator first, _InputIterator last) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: template argument deduction/substitution failed:
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: note: candidate expects 2 arguments, 1 provided
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: candidate: 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >]'
- void insert(std::initializer_list<value_type> l) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: no known conversion for argument 1 from 'fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >' to 'std::initializer_list<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator fefu::hash_map<K, T, Hash, Pred, Alloc>::begin() const [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator = fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:319:9: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator=(const fefu::hash_map<K, T, Hash, Pred, Alloc>&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:1025:15: required from 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::rehash(fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type = unsigned int]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:837:13: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator[](const key_type&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type = int; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:59:18: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:382:37: error: binding reference of type 'std::vector<char>&' to 'const std::vector<char>' discards qualifiers
- return const_iterator(data, state, 0);
- ^~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:208:3: note: initializing argument 2 of 'fefu::hash_map_const_iterator<ValueType>::hash_map_const_iterator(fefu::hash_map_const_iterator<ValueType>::pointer, std::vector<char>&, size_t) [with ValueType = std::pair<const std::__cxx11::basic_string<char>, int>; fefu::hash_map_const_iterator<ValueType>::pointer = const std::pair<const std::__cxx11::basic_string<char>, int>*; size_t = unsigned int]'
- hash_map_const_iterator(pointer p, std::vector<char> &st, size_t pos): start(p), state(st), position(pos) {}
- ^~~~~~~~~~~~~~~~~~~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator fefu::hash_map<K, T, Hash, Pred, Alloc>::end() const [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::const_iterator = fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:319:9: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator=(const fefu::hash_map<K, T, Hash, Pred, Alloc>&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:1025:15: required from 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::rehash(fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type = unsigned int]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:837:13: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator[](const key_type&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type = int; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:59:18: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:403:37: error: binding reference of type 'std::vector<char>&' to 'const std::vector<char>' discards qualifiers
- return const_iterator(data, state, state.size());
- ^~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:208:3: note: initializing argument 2 of 'fefu::hash_map_const_iterator<ValueType>::hash_map_const_iterator(fefu::hash_map_const_iterator<ValueType>::pointer, std::vector<char>&, size_t) [with ValueType = std::pair<const std::__cxx11::basic_string<char>, int>; fefu::hash_map_const_iterator<ValueType>::pointer = const std::pair<const std::__cxx11::basic_string<char>, int>*; size_t = unsigned int]'
- hash_map_const_iterator(pointer p, std::vector<char> &st, size_t pos): start(p), state(st), position(pos) {}
- ^~~~~~~~~~~~~~~~~~~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >; K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:319:9: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator=(const fefu::hash_map<K, T, Hash, Pred, Alloc>&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:1025:15: required from 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::rehash(fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type = unsigned int]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:837:13: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator[](const key_type&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type = int; fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type = std::__cxx11::basic_string<char>]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:59:18: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: error: no matching function for call to 'fefu::hash_map<std::__cxx11::basic_string<char>, int>::insert(fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >&)'
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(const value_type&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const std::__cxx11::basic_string<char>, int>]'
- std::pair<iterator, bool> insert(const value_type& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: no known conversion for argument 1 from 'fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >' to 'const value_type&' {aka 'const std::pair<const std::__cxx11::basic_string<char>, int>&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type&&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const std::__cxx11::basic_string<char>, int>]'
- std::pair<iterator, bool> insert(value_type&& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: no known conversion for argument 1 from 'fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >' to 'fefu::hash_map<std::__cxx11::basic_string<char>, int>::value_type&&' {aka 'std::pair<const std::__cxx11::basic_string<char>, int>&&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: candidate: 'template<class _InputIterator> void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >]'
- void insert(_InputIterator first, _InputIterator last) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: template argument deduction/substitution failed:
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: note: candidate expects 2 arguments, 1 provided
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: candidate: 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >]'
- void insert(std::initializer_list<value_type> l) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: no known conversion for argument 1 from 'fefu::hash_map_const_iterator<std::pair<const std::__cxx11::basic_string<char>, int> >' to 'std::initializer_list<std::pair<const std::__cxx11::basic_string<char>, int> >'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In instantiation of 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = fefu::hash_map_const_iterator<std::pair<const int, int> >; K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:319:9: required from 'fefu::hash_map<K, T, Hash, Pred, Alloc>& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator=(const fefu::hash_map<K, T, Hash, Pred, Alloc>&) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:1025:15: required from 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::rehash(fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::size_type = unsigned int]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:708:9: required from 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::merge(fefu::hash_map<K, T, _H2, _P2, Alloc>&) [with _H2 = std::hash<int>; _P2 = std::equal_to<int>; K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\main.cpp:166:40: required from here
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: error: no matching function for call to 'fefu::hash_map<int, int>::insert(fefu::hash_map_const_iterator<std::pair<const int, int> >&)'
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(const value_type&) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const int, int>]'
- std::pair<iterator, bool> insert(const value_type& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:492:31: note: no known conversion for argument 1 from 'fefu::hash_map_const_iterator<std::pair<const int, int> >' to 'const value_type&' {aka 'const std::pair<const int, int>&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: candidate: 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type&&) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >; fefu::hash_map<K, T, Hash, Pred, Alloc>::value_type = std::pair<const int, int>]'
- std::pair<iterator, bool> insert(value_type&& x) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:530:31: note: no known conversion for argument 1 from 'fefu::hash_map_const_iterator<std::pair<const int, int> >' to 'fefu::hash_map<int, int>::value_type&&' {aka 'std::pair<const int, int>&&'}
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: candidate: 'template<class _InputIterator> void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = _InputIterator; K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]'
- void insert(_InputIterator first, _InputIterator last) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:550:10: note: template argument deduction/substitution failed:
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:552:13: note: candidate expects 2 arguments, 1 provided
- insert(i);
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: candidate: 'void fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(std::initializer_list<std::pair<const _Key, _Tp> >) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]'
- void insert(std::initializer_list<value_type> l) {
- ^~~~~~
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:563:10: note: no known conversion for argument 1 from 'fefu::hash_map_const_iterator<std::pair<const int, int> >' to 'std::initializer_list<std::pair<const int, int> >'
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In member function 'fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator[](fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type&&) [with K = std::__cxx11::basic_string<char>; T = main()::TestStruct; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, main()::TestStruct> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:895:5: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In member function 'fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator[](const key_type&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:863:5: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In member function 'fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator[](fefu::hash_map<K, T, Hash, Pred, Alloc>::key_type&&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:895:5: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In member function 'std::pair<fefu::hash_map_iterator<std::pair<const _Key, _Tp> >, bool> fefu::hash_map<K, T, Hash, Pred, Alloc>::insert(const value_type&) [with K = std::__cxx11::basic_string<char>; T = int; Hash = std::hash<std::__cxx11::basic_string<char> >; Pred = std::equal_to<std::__cxx11::basic_string<char> >; Alloc = fefu::allocator<std::pair<const std::__cxx11::basic_string<char>, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:528:5: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp: In member function 'fefu::hash_map<K, T, Hash, Pred, Alloc>::mapped_type& fefu::hash_map<K, T, Hash, Pred, Alloc>::operator[](const key_type&) [with K = int; T = int; Hash = std::hash<int>; Pred = std::equal_to<int>; Alloc = fefu::allocator<std::pair<const int, int> >]':
- C:\Users\Svetlana\CLionProjects\hash-map-svevash\hash_map.hpp:863:5: warning: control reaches end of non-void function [-Wreturn-type]
- }
- ^
- mingw32-make.exe[3]: *** [CMakeFiles\hash-map-svevash.dir\build.make:62: CMakeFiles/hash-map-svevash.dir/main.cpp.obj] Error 1
- mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:75: CMakeFiles/hash-map-svevash.dir/all] Error 2
- mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:82: CMakeFiles/hash-map-svevash.dir/rule] Error 2
- mingw32-make.exe: *** [Makefile:117: hash-map-svevash] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement