On terça-feira, 3 de setembro de 2013 17:20:09, Alex Malyushytskyy wrote:
> You meant allocators used by default.
> Such problems can be solved by using custom allocators.

Not all problems. Because of the exception safety guarantees, some types 
(notably std::vector) might need to copy everything when extending the buffer. 
Otherwise, if an item threw while copying, it would be impossible to restore 
the previous known, good state and rethrow.

QVector doesn't need to do that. If it could extend its buffer without moving 
it, it would do just that and "damn the exceptions".

We're just waiting for N3495[1]. See also my post:
        https://plus.google.com/u/0/108138837678270193032/posts/Bv1JqMkkmfz

[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3495.htm

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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to