On Thursday 21 January 2016 05:27:50 Kevin Kofler wrote:
> Thiago Macieira wrote:
> > The copy constructor is called once, then the move constructor. If
> > value_type's move constructor is not noexcept, then it may throw after the
> > container resized.
> 
> Throwing an exception in a move constructor is really, really horrible. I
> can see why a copy constructor would throw (out of memory, failure to
> duplicate some other resource), but a move?

Indeed.

But the class in question may not have a move constructor. In the absence of 
one, the copy constructor gets called.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to