Boost logo

Boost :

From: Gary Powell (Gary.Powell_at_[hidden])
Date: 2000-03-16 12:42:43


> To reduce compile time, I would like to avoid saying
>
> #include <vector>
>
> which increases the effective size of the file from dozens of lines
> to dozens of thousands of lines.
>
> As I see it, my choices include
>
> 1) Just include <vector> and stop whining
> 2) Change the signature to f(const A * inList, int inListLength)
> 3) Create my own non-portable <stlfwd> which is like <iosfwd> but for
> stl types.
>
>
Forward declare it:

namespace std {
template<class T,class Alloc> vector<T,Alloc>;
}

-gary-


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