[cfe-dev] Attempt to install and test the libc++ failing rather catastrophically
Jonathan Sauer
jonathan.sauer at gmx.de
Sun Jun 26 22:37:17 PDT 2011
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.
> 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>.
Jonathan
More information about the cfe-dev
mailing list