Boost Users :
Subject: Re: [Boost-users] [Container] deque emplace() requirements
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-12-13 11:42:45
El 13/12/2011 13:23, Szymon Gatner escribió:
> 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).
You are right, it's a bug. I'll try to fix it when I get some time.
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