Pavol Droba wrote:

> I wanted to do something else:
>
>         template <class T> struct trait_class
>    {
>    ....
>    }
>
>    template <class T> struct trait_class<std::vector<T> >
>    {
>    ....
>    }
>
> without #include <vector>
>
> Is this possible? Or is there a way how to achieve the same efect, but without 
> including <vector>?
>
> I see, that is probably isn't ..
>
> Pavol
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Pavol

Could you put each specialisation in a separate header file and arrange only to 
include the ones which you
need, the vector one when you include <vector> etc?

Just a thought

John



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

Reply via email to