Boost logo

Boost :

From: John Maddock (john_maddock_at_[hidden])
Date: 2002-03-28 06:13:22


> The boost/filesystem/directory.hpp header I'm working on has a couple of
> signatures that take "const regex &" arguments.
>
> I really don't want to #include boost/regex.hpp since many uses of the
> directory.hpp header will not use regex.
>
> Has there been any discussion of providing a regex_fwd.hpp header?

Good point, there hasn't really been any discussion, but I'll look into it,
I think it should be possible - provided default template arguments on a
forward declaration don't trip up any compilers - I'll experiment and see
what happens. Is it just boost::reg_expression (and typedefs thereof) that
you need?

John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm


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