S
Stephen Howe
Hi
I cant find whether this is valid C++, but I believe it is
// ---------------------------- start header file
#include <vector>
// Forward Declaration
class FooBar;
int SomeFunction1(FooBar); // Valid
declaration, I know this
int SomeFunction2(std::vector<FooBar>& ref); // But is this, on
using std::vector???
// ---------------------------- end header file
Yes FooBar is incomplete but all I am interested in is whether it is a
valid declaration.
All of this is to minimise header file dependency, so FooBar's
definition is not dragged in.
I know that where SomeFunction2 is defined, a full definition of
FooBar is needed.
Thanks
Stephen Howe
I cant find whether this is valid C++, but I believe it is
// ---------------------------- start header file
#include <vector>
// Forward Declaration
class FooBar;
int SomeFunction1(FooBar); // Valid
declaration, I know this
int SomeFunction2(std::vector<FooBar>& ref); // But is this, on
using std::vector???
// ---------------------------- end header file
Yes FooBar is incomplete but all I am interested in is whether it is a
valid declaration.
All of this is to minimise header file dependency, so FooBar's
definition is not dragged in.
I know that where SomeFunction2 is defined, a full definition of
FooBar is needed.
Thanks
Stephen Howe