Boost logo

Boost :

From: jk_at_[hidden]
Date: 2000-12-06 10:29:36


--- In boost_at_[hidden], Slawomir.Czarko_at_s... wrote:
> Can anyone suggest a workaround or explain to me what am I doing
> wrong?

Workarounds:

1) Try to compile with optimization on, at least with -O1;

or

2) use non-templatized wrapper class, like:

struct shared_foo : public boost::shared_ptr<foo>
{
// ...constructor...
};

shared_foo array[] = { shared_foo(new foo) };

--
jk

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