Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2001-05-02 06:08:32


>I *may* have a complaint, however, about the naming of the header classes.

>I included regex.h in my program, tried to use the regex class, and got
>some pretty frustrating error messages. I think I was literally pounding
>the desk, although that may have been blood-sugar related. Ultimately, I
>worked from an example and noted that regex.h is NOT regex.hpp. But of
>course since regex.h exists, my compiler wasn't complaining about a bad
>file name.

regex.h is for POSIX standard API's only: regcomp, regexec etc, it's really
just there for C compatability. If you look in the docs for reg_expression
the very first line does say:

#include <boost/regex.hpp>

- John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/


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