Closed cgyurgyik closed 4 years ago
In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33:0, from /usr/include/c++/6/bits/allocator.h:46, from /usr/include/c++/6/memory:63, from /root/project/cpp/tests/build/googletest-src/googletest/include/gtest/gtest.h:57, from /root/project/cpp/tests/test_SVR.cpp:1: /usr/include/c++/6/ext/new_allocator.h: In instantiation of 'class __gnu_cxx::new_allocator<const BoundVec3>': /usr/include/c++/6/bits/allocator.h:108:11: required from 'class std::allocator<const BoundVec3>' /usr/include/c++/6/bits/stl_vector.h:79:14: required from 'struct std::_Vector_base<const BoundVec3, std::allocator<const BoundVec3> >::_Vector_impl' /usr/include/c++/6/bits/stl_vector.h:164:20: required from 'struct std::_Vector_base<const BoundVec3, std::allocator<const BoundVec3> >' /usr/include/c++/6/bits/stl_vector.h:214:11: required from 'class std::vector<const BoundVec3>' /root/project/cpp/tests/test_SVR.cpp:687:44: required from here /usr/include/c++/6/ext/new_allocator.h:93:7: error: 'const _Tp* __gnu_cxx::new_allocator<_Tp>::address(__gnu_cxx::new_allocator<_Tp>::const_reference) const [with _Tp = const BoundVec3; __gnu_cxx::new_allocator<_Tp>::const_pointer = const BoundVec3*; __gnu_cxx::new_allocator<_Tp>::const_reference = const BoundVec3&]' cannot be overloaded address(const_reference __x) const _GLIBCXX_NOEXCEPT ^~~~~~~ /usr/include/c++/6/ext/new_allocator.h:89:7: error: with '_Tp* __gnu_cxx::new_allocator<_Tp>::address(__gnu_cxx::new_allocator<_Tp>::reference) const [with _Tp = const BoundVec3; __gnu_cxx::new_allocator<_Tp>::pointer = const BoundVec3*; __gnu_cxx::new_allocator<_Tp>::reference = const BoundVec3&]' address(reference __x) const _GLIBCXX_NOEXCEPT ^~~~~~~ /usr/include/c++/6/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::deallocate(__gnu_cxx::new_allocator<_Tp>::pointer, __gnu_cxx::new_allocator<_Tp>::size_type) [with _Tp = const BoundVec3; __gnu_cxx::new_allocator<_Tp>::pointer = const BoundVec3*; __gnu_cxx::new_allocator<_Tp>::size_type = long unsigned int]': /usr/include/c++/6/bits/alloc_traits.h:462:9: required from 'static void std::allocator_traits<std::allocator<_Tp1> >::deallocate(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, std::allocator_traits<std::allocator<_Tp1> >::pointer, std::allocator_traits<std::allocator<_Tp1> >::size_type) [with _Tp = const BoundVec3; std::allocator_traits<std::allocator<_Tp1> >::allocator_type = std::allocator<const BoundVec3>; std::allocator_traits<std::allocator<_Tp1> >::pointer = const BoundVec3*; std::allocator_traits<std::allocator<_Tp1> >::size_type = long unsigned int]' /usr/include/c++/6/bits/stl_vector.h:178:19: required from 'void std::_Vector_base<_Tp, _Alloc>::_M_deallocate(std::_Vector_base<_Tp, _Alloc>::pointer, std::size_t) [with _Tp = const BoundVec3; _Alloc = std::allocator<const BoundVec3>; std::_Vector_base<_Tp, _Alloc>::pointer = const BoundVec3*; std::size_t = long unsigned int]' /usr/include/c++/6/bits/stl_vector.h:160:22: required from 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = const BoundVec3; _Alloc = std::allocator<const BoundVec3>]' /usr/include/c++/6/bits/stl_vector.h:377:18: required from 'std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = const BoundVec3; _Alloc = std::allocator<const BoundVec3>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<const BoundVec3>]' /root/project/cpp/tests/test_SVR.cpp:691:86: required from here /usr/include/c++/6/ext/new_allocator.h:110:26: error: invalid conversion from 'const void*' to 'void*' [-fpermissive] { ::operator delete(__p); } ~~~~~~~~~~~~~~~~~^~~~~ In file included from /usr/include/c++/6/ext/new_allocator.h:33:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/c++allocator.h:33, from /usr/include/c++/6/bits/allocator.h:46, from /usr/include/c++/6/memory:63, from /root/project/cpp/tests/build/googletest-src/googletest/include/gtest/gtest.h:57, from /root/project/cpp/tests/test_SVR.cpp:1: /usr/include/c++/6/new:120:6: note: initializing argument 1 of 'void operator delete(void*)' void operator delete(void*) _GLIBCXX_USE_NOEXCEPT ^~~~~~~~