Boost logo

Boost Users :

Subject: [Boost-users] [Container] deque emplace() requirements
From: Szymon Gatner (szymon.gatner_at_[hidden])
Date: 2011-12-13 07:23:00


Hi,

question: why container::deque<T>::emplace_back() requires T to be copyable?

Shouldn't it just be using placement new operator with passed c-tor params?

Unless growing of deque causes elements to be copied which is not what I
want at all (hence deque and not vector).

Cheers,
Simon

-- 
Szymon Gatner
The Lordz Games Studio
www.thelordzgamesstudio.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net