|
Boost : |
From: John Fletcher (J.P.Fletcher_at_[hidden])
Date: 2003-03-07 11:54:14
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk