Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
MSVC fails to compile call to std::vector::push_back() with non-movabl...Error(s): C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory0(655): error C2280: 'A::A(A &&)': attempting to reference a deleted function source_file.cpp(20): note: see declaration of 'A::A' C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory0(773): note: see reference to function template instantiation 'void std::allocator<_Ty>::construct<_Objty,_Ty>(_Objty *,_Ty &&)' being compiled with [ _Ty=A, _Objty=A ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory0(773): note: see reference to function template instantiation 'void std::allocator<_Ty>::construct<_Objty,_Ty>(_Objty *,_Ty &&)' being compiled with [ _Ty=A, _Objty=A ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory0(918): note: see reference to function template instantiation 'void std::allocator_traits<_Alloc>::construct<_Ty,_Ty>(std::allocator<_Ty> &,_Objty *,_Ty &&)' being compiled with [ _Alloc=std::allocator<A>, _Ty=A, _Objty=A ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory0(917): note: see reference to function template instantiation 'void std::allocator_traits<_Alloc>::construct<_Ty,_Ty>(std::allocator<_Ty> &,_Objty *,_Ty &&)' being compiled with [ _Alloc=std::allocator<A>, _Ty=A, _Objty=A ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory(443): note: see reference to function template instantiation 'void std::_Wrap_alloc<std::allocator<_Ty>>::construct<A,_Valty>(_Ty *,_Valty &&)' being compiled with [ _Ty=A, _Valty=A ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory(443): note: see reference to function template instantiation 'void std::_Wrap_alloc<std::allocator<_Ty>>::construct<A,_Valty>(_Ty *,_Valty &&)' being compiled with [ _Ty=A, _Valty=A ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory(482): note: see reference to function template instantiation '_FwdIt std::_Uninit_move<_InIt,_FwdIt,std::allocator<_Ty>,A>(_InIt,_InIt,_FwdIt,std::_Wrap_alloc<std::allocator<_Ty>> &,_Valty *,std::_Nonscalar_ptr_iterator_tag)' being compiled with [ _FwdIt=A *, _InIt=A *, _Ty=A, _Valty=A ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xmemory(493): note: see reference to function template instantiation '_FwdIt std::_Uninit_move<_Iter,_Iter,_Alloc>(_InIt,_InIt,_FwdIt,_Alloc &)' being compiled with [ _FwdIt=A *, _Iter=A *, _Alloc=std::_Wrap_alloc<std::allocator<A>>, _InIt=A * ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\vector(1679): note: see reference to function template instantiation '_FwdIt std::_Uninitialized_move<_Iter,A*,std::_Wrap_alloc<std::allocator<_Ty>>>(_InIt,_InIt,_FwdIt,_Alloc &)' being compiled with [ _FwdIt=A *, _Iter=A *, _Ty=A, _InIt=A *, _Alloc=std::_Wrap_alloc<std::allocator<A>> ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\vector(1624): note: see reference to function template instantiation 'A *std::vector<A,std::allocator<_Ty>>::_Umove<A*>(_Iter,_Iter,A *)' being compiled with [ _Ty=A, _Iter=A * ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\vector(1624): note: see reference to function template instantiation 'A *std::vector<A,std::allocator<_Ty>>::_Umove<A*>(_Iter,_Iter,A *)' being compiled with [ _Ty=A, _Iter=A * ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\vector(1620): note: while compiling class template member function 'void std::vector<A,std::allocator<_Ty>>::_Reallocate(unsigned __int64)' with [ _Ty=A ] C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\vector(1650): note: see reference to function template instantiation 'void std::vector<A,std::allocator<_Ty>>::_Reallocate(unsigned __int64)' being compiled with [ _Ty=A ] source_file.cpp(28): note: see reference to class template instantiation 'std::vector<A,std::allocator<_Ty>>' being compiled with [ _Ty=A ] Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 |
λ
.NET NoSQL database for rapid development
|