When I declare a vector of unique_ptr's, I get this kind of error:
d:\qt\mingw64\include\c++\4.8.0\bits\stl_construct.h:75: error:
use of deleted function 'std::unique_ptr<_Tp, _Dp>::unique_ptr(
const std::unique_ptr<_Tp, _Dp>&) [with _Tp = int; _Dp = std::default_delete<int>]'
Which looks like the classical error of creating a containers of objects which have no copy constructor.
However, it is documented in everything I could find that a standard container of unique_ptrs works thanks to the c++11 move semantics.
I am compiling with MinGW-gcc 64-bit, using -std=gnu++11.
Is it supported only in c++11 and not in gnu++11?
Thanks