Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-03-07 10:09:40

Pavol Droba <droba_at_[hidden]> writes:

> I have tried to make forward declaration of std::vector and alike, but it does not work all the time,
> and, I think it is even forbiden by some compilers.

It's forbidden by the standard.

> My question is:
> Is there a correct way how to avoid these unwanted inclusions?

Not if they're standard containers :(

> Or more specificaly:
> How to define a partial specialization for a specific type, without including its full definition?

That's a different question:

    template <class T> struct whatever;

    template <class T> struct whatever<boost::shared_ptr<T> >


You never have to define the primary template, in fact.

Dave Abrahams
Boost Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at