[cfe-dev] Attempt to install and test the libc++ failing rather catastrophically
Howard Hinnant
hhinnant at apple.com
Mon Jun 27 05:06:01 PDT 2011
On Jun 27, 2011, at 12:37 AM, Jonathan Sauer wrote:
> Hello,
>
>>> /usr/local/include/boost/detail/container_fwd.hpp:86:47: note: template is declared here
>>> template <class T, class Allocator> class vector;
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
>>
>> /usr/local/include/boost/detail/container_fwd.hpp is illegally trying to forward declare std::vector. One has to instead #include <vector> if you need to use std::vector.
>
> This bug is fixed in boost 1.46. Just define BOOST_DETAIL_NO_CONTAINER_FWD, and the full headers are included
> instead of using forward declarations.
Thanks for the info.
>> There is no portable way to forward declare the std containers (and boost developers should know better).
>
> Which really is an oversight in the Standard, and a puzzling one at that: After all, there is a forward header for
> <ios>.
http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#submit_issue
Howard
More information about the cfe-dev
mailing list