|
Boost Users : |
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-05-19 03:53:04
Frank Birbacher skrev:
> Hi!
>
> Maik Beckmann schrieb:
>> Am Freitag 16 Mai 2008 21:32:56 schrieb Maik Beckmann:
>>> Hello,
>>>
>>> Does boost got something to do this
>>> struct node {
>>> std::vector<node> children; // node is incomplete
>>> };
>>> in a way which conform with the standard which disallows STL containers of
>>> incomplete types?
>
> Using boost::shared_ptr or boost pointer containers come to mind (
> http://www.boost.org/doc/libs/1_35_0/libs/ptr_container/doc/ptr_container.html
> ). But I don't know weather pointer containers allow incomplete types. I
> couldn't find it in the documentation.
That should work just fine. Isn't there a FAQ entry about this?
best regards
-Thorsten
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