|
Boost : |
From: Gary Powell (Gary.Powell_at_[hidden])
Date: 2000-11-07 15:36:39
> This raises an interesting question if any were to move from class to
> typedef: For library users, should the same requirements that exist on
> forward declaring entities in the standard (ie that you can't) also be
> applied to Boost?
>
After having complained that this wasn't possible for STL containers, I
modified the views library (VTL) to have a viewName_fwd.hpp file for every
view. Then the viewName.hpp file includes the *_fwd.hpp file to guarantee
that it is correct. It of course doubled the number of interface files but I
think it was worth it because it allows specification of a class with a
pointer to a view, without having to include that view.
So while any.hpp is a small file to parse, an any_fwd.hpp file would be an
appropriate addition.
Yours,
-gary-
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk