Pavol Droba <[EMAIL PROTECTED]> 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
www.boost-consulting.com

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to