There are a lot of warnings when compile in raspberrypi gcc 7.1 #2660
bloomsource
started this conversation in
General
Replies: 1 comment 1 reply
-
This warning is not related to this library, but to the fact that GCC made a fix that changed the ABI. See #1861 for more information. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
my environment is gcc7.1 ,
OS: Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux
is use the singel json.hpp source code
In file included from srv.cpp:4:0:
json.hpp: In member function ‘void nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType>::json_value::destroy(nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType>::value_t) [with ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string; BooleanType = bool; NumberIntegerType = long long int; NumberUnsignedType = long long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer; BinaryType = std::vector]’:
json.hpp:17729:17: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
std::move(array->begin(), array->end(), std::back_inserter(stack));
^~~
json.hpp:17750:21: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
std::move(current_item.m_value.array->begin(), current_item.m_value.array->end(),
^~~
In file included from /usr/include/c++/6/vector:69:0,
from json.hpp:47,
from srv.cpp:4:
/usr/include/c++/6/bits/vector.tcc: In member function ‘void std::vector<_Tp, _Alloc>::reserve(std::vector<_Tp, _Alloc>::size_type) [with _Tp = nlohmann::basic_json<>; _Alloc = std::allocator<nlohmann::basic_json<> >]’:
/usr/include/c++/6/bits/vector.tcc:75:70: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
_GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(this->_M_impl._M_finish));
^
/usr/include/c++/6/bits/vector.tcc:75:70: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/string:40,
from srv.h:5,
from srv.cpp:1:
/usr/include/c++/6/bits/stl_algobase.h: In function ‘_OI std::move(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >; _OI = std::back_insert_iterator<std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >]’:
/usr/include/c++/6/bits/stl_algobase.h:479:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
move(_II __first, _II __last, _OI __result)
^~~~
/usr/include/c++/6/bits/stl_algobase.h:479:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
/usr/include/c++/6/bits/stl_algobase.h:488:47: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
std::__miter_base(__last), __result);
^
In file included from /usr/include/c++/6/vector:64:0,
from json.hpp:47,
from srv.cpp:4:
/usr/include/c++/6/bits/stl_vector.h: In member function ‘std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_M_allocate_and_copy(std::vector<_Tp, _Alloc>::size_type, _ForwardIterator, _ForwardIterator) [with _ForwardIterator = std::move_iterator<nlohmann::basic_json<>>; _Tp = nlohmann::basic_json<>; _Alloc = std::allocator<nlohmann::basic_json<> >]’:
/usr/include/c++/6/bits/stl_vector.h:1219:9: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
_M_allocate_and_copy(size_type __n,
^~~~~~~~~~~~~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:1219:9: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
/usr/include/c++/6/bits/stl_vector.h:1225:8: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
std::__uninitialized_copy_a(__first, __last, __result,
^~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:61:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/string:40,
from srv.h:5,
from srv.cpp:1:
/usr/include/c++/6/bits/cpp_type_traits.h: In function ‘_Iterator std::__miter_base(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >]’:
/usr/include/c++/6/bits/cpp_type_traits.h:408:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
__miter_base(_Iterator __it)
^~~~~~~~~~~~
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/string:40,
from srv.h:5,
from srv.cpp:1:
/usr/include/c++/6/bits/stl_algobase.h: In function ‘_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = true; _II = __gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >; _OI = std::back_insert_iterator<std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >]’:
/usr/include/c++/6/bits/stl_algobase.h:420:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
__copy_move_a2(_II __first, _II __last, _OI __result)
^~~~~~~~~~~~~~
/usr/include/c++/6/bits/stl_algobase.h:420:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
In file included from srv.cpp:4:0:
json.hpp: In member function ‘IteratorType nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType>::erase(IteratorType) [with IteratorType = nlohmann::detail::iter_impl<nlohmann::basic_json<> >; typename std::enable_if<(std::is_same<InputIT, nlohmann::detail::iter_impl<nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType> > >::value || std::is_same<InputIT, nlohmann::detail::iter_impl<const nlohmann::basic_json<ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType> > >::value), int>::type = 0; ObjectType = std::map; ArrayType = std::vector; StringType = std::__cxx11::basic_string; BooleanType = bool; NumberIntegerType = long long int; NumberUnsignedType = long long unsigned int; NumberFloatType = double; AllocatorType = std::allocator; JSONSerializer = nlohmann::adl_serializer; BinaryType = std::vector]’:
json.hpp:20673:17: note: parameter passing for argument of type ‘std::map<std::__cxx11::basic_string, nlohmann::basic_json<>, std::less<std::__cxx11::basic_string >, std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > > >::iterator {aka std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >}’ will change in GCC 7.1
result.m_it.object_iterator = m_value.object->erase(pos.m_it.object_iterator);
^~~~~~
json.hpp:20679:17: note: parameter passing for argument of type ‘std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > >::const_iterator {aka __gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >}’ will change in GCC 7.1
result.m_it.array_iterator = m_value.array->erase(pos.m_it.array_iterator);
^~~~~~
In file included from /usr/include/c++/6/map:61:0,
from srv.h:7,
from srv.cpp:1:
/usr/include/c++/6/bits/stl_map.h: In member function ‘std::map<_Key, _Tp, _Compare, _Alloc>::mapped_type& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const key_type&) [with _Key = std::__cxx11::basic_string; _Tp = nlohmann::basic_json<>; _Compare = std::less<std::__cxx11::basic_string >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >]’:
/usr/include/c++/6/bits/stl_map.h:483:4: note: parameter passing for argument of type ‘std::_Rb_tree<std::__cxx11::basic_string, std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> >, std::_Select1st<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >, std::less<std::__cxx11::basic_string >, std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >}’ will change in GCC 7.1
__i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct,
^~~
In file included from /usr/include/c++/6/memory:65:0,
from json.hpp:43,
from srv.cpp:4:
/usr/include/c++/6/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::move_iterator<nlohmann::basic_json<>>; _ForwardIterator = nlohmann::basic_json<>; _Tp = nlohmann::basic_json<>]’:
/usr/include/c++/6/bits/stl_uninitialized.h:279:5: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
__uninitialized_copy_a(_InputIterator __first, _InputIterator __last,
^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/6/bits/stl_uninitialized.h:279:5: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
/usr/include/c++/6/bits/stl_uninitialized.h:281:63: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
{ return std::uninitialized_copy(__first, __last, __result); }
^
In file included from /usr/include/c++/6/bits/stl_algobase.h:67:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/string:40,
from srv.h:5,
from srv.cpp:1:
/usr/include/c++/6/bits/stl_iterator.h: In function ‘_Iterator std::__niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container>) [with _Iterator = nlohmann::basic_json<>; _Container = std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > >]’:
/usr/include/c++/6/bits/stl_iterator.h:980:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
__niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it)
^~~~~~~~~~~~
In file included from /usr/include/c++/6/map:61:0,
from srv.h:7,
from srv.cpp:1:
/usr/include/c++/6/bits/stl_map.h: In member function ‘std::map<_Key, _Tp, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::erase(std::map<_Key, _Tp, _Compare, _Alloc>::iterator) [with _Key = std::__cxx11::basic_string; _Tp = nlohmann::basic_json<>; _Compare = std::less<std::__cxx11::basic_string >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >]’:
/usr/include/c++/6/bits/stl_map.h:950:7: note: parameter passing for argument of type ‘std::map<std::__cxx11::basic_string, nlohmann::basic_json<>, std::less<std::__cxx11::basic_string >, std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > > >::iterator {aka std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >}’ will change in GCC 7.1
erase(iterator __position)
^~~~~
/usr/include/c++/6/bits/stl_map.h:951:37: note: parameter passing for argument of type ‘std::map<std::__cxx11::basic_string, nlohmann::basic_json<>, std::less<std::__cxx11::basic_string >, std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > > >::iterator {aka std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >}’ will change in GCC 7.1
{ return _M_t.erase(__position); }
^
In file included from /usr/include/c++/6/vector:64:0,
from json.hpp:47,
from srv.cpp:4:
/usr/include/c++/6/bits/stl_vector.h: In member function ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::const_iterator) [with _Tp = nlohmann::basic_json<>; _Alloc = std::allocator<nlohmann::basic_json<> >]’:
/usr/include/c++/6/bits/stl_vector.h:1147:7: note: parameter passing for argument of type ‘std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > >::const_iterator {aka __gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >}’ will change in GCC 7.1
erase(const_iterator __position)
^~~~~
/usr/include/c++/6/bits/stl_vector.h:1148:58: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
{ return _M_erase(begin() + (__position - cbegin())); }
^
In file included from /usr/include/c++/6/set:60:0,
from srv.h:6,
from srv.cpp:1:
/usr/include/c++/6/bits/stl_tree.h: In member function ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<const std::__cxx11::basic_string<char, std::char_traits, std::allocator >&>, std::tuple<>}; _Key = std::__cxx11::basic_string; _Val = std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >; _Compare = std::less<std::__cxx11::basic_string >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >]’:
/usr/include/c++/6/bits/stl_tree.h:2193:7: note: parameter passing for argument of type ‘std::_Rb_tree<std::__cxx11::basic_string, std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> >, std::_Select1st<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >, std::less<std::__cxx11::basic_string >, std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >}’ will change in GCC 7.1
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/6/memory:65:0,
from json.hpp:43,
from srv.cpp:4:
/usr/include/c++/6/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<nlohmann::basic_json<>>; _ForwardIterator = nlohmann::basic_json<>]’:
/usr/include/c++/6/bits/stl_uninitialized.h:107:5: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
uninitialized_copy(_InputIterator __first, _InputIterator __last,
^~~~~~~~~~~~~~~~~~
/usr/include/c++/6/bits/stl_uninitialized.h:107:5: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
/usr/include/c++/6/bits/stl_uninitialized.h:126:41: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
__uninit_copy(__first, __last, __result);
^
/usr/include/c++/6/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::__uninitialized_move_if_noexcept_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = nlohmann::basic_json<>; _ForwardIterator = nlohmann::basic_json<>; _Allocator = std::allocator<nlohmann::basic_json<> >]’:
/usr/include/c++/6/bits/stl_uninitialized.h:304:69: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
_GLIBCXX_MAKE_MOVE_IF_NOEXCEPT_ITERATOR(__last), __result, __alloc);
^
In file included from /usr/include/c++/6/set:60:0,
from srv.h:6,
from srv.cpp:1:
/usr/include/c++/6/bits/stl_tree.h: In member function ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator) [with _Key = std::__cxx11::basic_string; _Val = std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >; _Compare = std::less<std::__cxx11::basic_string >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >]’:
/usr/include/c++/6/bits/stl_tree.h:1043:7: note: parameter passing for argument of type ‘std::_Rb_tree<std::__cxx11::basic_string, std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> >, std::_Select1st<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >, std::less<std::__cxx11::basic_string >, std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > > >::iterator {aka std::_Rb_tree_iterator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >}’ will change in GCC 7.1
erase(iterator __position)
^~~~~
/usr/include/c++/6/bits/stl_tree.h:1047:2: note: parameter passing for argument of type ‘std::_Rb_tree<std::__cxx11::basic_string, std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> >, std::_Select1st<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >, std::less<std::__cxx11::basic_string >, std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >}’ will change in GCC 7.1
_M_erase_aux(__position);
^~~~~~~~~~~~
In file included from /usr/include/c++/6/vector:69:0,
from json.hpp:47,
from srv.cpp:4:
/usr/include/c++/6/bits/vector.tcc: In member function ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = nlohmann::basic_json<>; _Alloc = std::allocator<nlohmann::basic_json<> >]’:
/usr/include/c++/6/bits/vector.tcc:141:5: note: parameter passing for argument of type ‘std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > >::iterator {aka __gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >}’ will change in GCC 7.1
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/string:40,
from srv.h:5,
from srv.cpp:1:
/usr/include/c++/6/bits/vector.tcc:145:2: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
_GLIBCXX_MOVE3(__position + 1, end(), __position);
^
/usr/include/c++/6/bits/vector.tcc:145:2: note: parameter passing for argument of type ‘std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > >::iterator {aka __gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >}’ will change in GCC 7.1
/usr/include/c++/6/bits/vector.tcc:145:2: note: parameter passing for argument of type ‘std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > >::iterator {aka __gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >}’ will change in GCC 7.1
In file included from /usr/include/c++/6/set:60:0,
from srv.h:6,
from srv.cpp:1:
/usr/include/c++/6/bits/stl_tree.h: In member function ‘std::pair<std::_Rb_tree_node_base, std::_Rb_tree_node_base*> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_hint_unique_pos(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, const key_type&) [with _Key = std::__cxx11::basic_string; _Val = std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >; _Compare = std::less<std::__cxx11::basic_string >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >]’:
/usr/include/c++/6/bits/stl_tree.h:1928:5: note: parameter passing for argument of type ‘std::_Rb_tree<std::__cxx11::basic_string, std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> >, std::_Select1st<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >, std::less<std::__cxx11::basic_string >, std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >}’ will change in GCC 7.1
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/6/memory:65:0,
from json.hpp:43,
from srv.cpp:4:
/usr/include/c++/6/bits/stl_uninitialized.h: In static member function ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::move_iterator<nlohmann::basic_json<>>; _ForwardIterator = nlohmann::basic_json<>; bool _TrivialValueTypes = false]’:
/usr/include/c++/6/bits/stl_uninitialized.h:68:9: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
__uninit_copy(_InputIterator __first, _InputIterator __last,
^~~~~~~~~~~~~
/usr/include/c++/6/bits/stl_uninitialized.h:68:9: note: parameter passing for argument of type ‘std::move_iterator<nlohmann::basic_json<>>’ will change in GCC 7.1
In file included from /usr/include/c++/6/set:60:0,
from srv.h:6,
from srv.cpp:1:
/usr/include/c++/6/bits/stl_tree.h: In member function ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = std::__cxx11::basic_string; _Val = std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> >; _KeyOfValue = std::_Select1st<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >; _Compare = std::less<std::__cxx11::basic_string >; _Alloc = std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >]’:
/usr/include/c++/6/bits/stl_tree.h:2268:5: note: parameter passing for argument of type ‘std::_Rb_tree<std::__cxx11::basic_string, std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> >, std::_Select1st<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >, std::less<std::__cxx11::basic_string >, std::allocator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const std::__cxx11::basic_string, nlohmann::basic_json<> > >}’ will change in GCC 7.1
_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/string:40,
from srv.h:5,
from srv.cpp:1:
/usr/include/c++/6/bits/stl_algobase.h: In function ‘_OI std::move(_II, _II, _OI) [with _II = __gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >; _OI = __gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >]’:
/usr/include/c++/6/bits/stl_algobase.h:479:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
move(_II __first, _II __last, _OI __result)
^~~~
/usr/include/c++/6/bits/stl_algobase.h:479:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
/usr/include/c++/6/bits/stl_algobase.h:479:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
/usr/include/c++/6/bits/stl_algobase.h:488:47: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
std::__miter_base(__last), __result);
^
/usr/include/c++/6/bits/stl_algobase.h:488:47: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
/usr/include/c++/6/bits/stl_algobase.h:488:47: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
/usr/include/c++/6/bits/stl_algobase.h: In function ‘_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = true; _II = __gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >; _OI = __gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >]’:
/usr/include/c++/6/bits/stl_algobase.h:420:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
__copy_move_a2(_II __first, _II __last, _OI __result)
^~~~~~~~~~~~~~
/usr/include/c++/6/bits/stl_algobase.h:420:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
/usr/include/c++/6/bits/stl_algobase.h:420:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
In file included from /usr/include/c++/6/vector:64:0,
from json.hpp:47,
from srv.cpp:4:
/usr/include/c++/6/bits/stl_vector.h: In copy constructor ‘std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = nlohmann::basic_json<>; _Alloc = std::allocator<nlohmann::basic_json<> >]’:
/usr/include/c++/6/bits/stl_vector.h:324:31: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
std::__uninitialized_copy_a(__x.begin(), __x.end(),
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
this->_M_impl._M_start,
~~~~~~~~~~~~~~~~~~~~~~~
_M_get_Tp_allocator());
~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/6/memory:65:0,
from json.hpp:43,
from srv.cpp:4:
/usr/include/c++/6/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = __gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >; _ForwardIterator = nlohmann::basic_json<>; _Tp = nlohmann::basic_json<>]’:
/usr/include/c++/6/bits/stl_uninitialized.h:279:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
__uninitialized_copy_a(_InputIterator __first, _InputIterator __last,
^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/6/bits/stl_uninitialized.h:279:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
/usr/include/c++/6/bits/stl_uninitialized.h:281:63: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
{ return std::uninitialized_copy(__first, __last, __result); }
^
/usr/include/c++/6/bits/stl_uninitialized.h: In function ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >; _ForwardIterator = nlohmann::basic_json<>]’:
/usr/include/c++/6/bits/stl_uninitialized.h:107:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
uninitialized_copy(_InputIterator __first, _InputIterator __last,
^~~~~~~~~~~~~~~~~~
/usr/include/c++/6/bits/stl_uninitialized.h:107:5: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
/usr/include/c++/6/bits/stl_uninitialized.h:126:41: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
__uninit_copy(__first, __last, __result);
^
/usr/include/c++/6/bits/stl_uninitialized.h: In static member function ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >; _ForwardIterator = nlohmann::basic_json<>; bool _TrivialValueTypes = false]’:
/usr/include/c++/6/bits/stl_uninitialized.h:68:9: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
__uninit_copy(_InputIterator __first, _InputIterator __last,
^~~~~~~~~~~~~
/usr/include/c++/6/bits/stl_uninitialized.h:68:9: note: parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<const nlohmann::basic_json<>, std::vector<nlohmann::basic_json<>, std::allocator<nlohmann::basic_json<> > > >’ will change in GCC 7.1
Beta Was this translation helpful? Give feedback.
All reactions