Boost logo

Boost :

From: Andrew D Jewell (ajewell_at_[hidden])
Date: 2000-03-16 09:45:28


I have a simple header file of the form

class A {
};

class B {
public:
    void f(const vector<A> & inList);
};

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.

I don't like any of these choices.
Are there others?
Any recommendations?

cheers,
Andy Jewell


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