Boost logo

Boost :

From: Giuseppe Ottaviano (giuott_at_[hidden])
Date: 2008-05-18 08:08:16


On May 18, 2008, at 1:29 PM, Frank Birbacher wrote:

> 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.

Maybe recursive_wrapper could help?
http://www.boost.org/doc/libs/1_35_0/doc/html/boost/recursive_wrapper.html

HTH,
Giuseppe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk