| Home | Libraries | People | FAQ | More

### Use in Standalone Mode (without the rest of Boost)

This library may now be used in "standalone" mode without the rest of the Boost C++ libraries, in order to do this you must either:

- Have a C++17 compiler that supports `__has_include`, in this case if `<boost/config.hpp>` is not present then the library will automoatically enter standalone mode. Or:
- Define BOOST_REGEX_STANDALONE when building.

The main difference between the 2 modes, is that when Boost.Config is present the library will automatically configure itself around various compiler defects. In particular in order to use the library with exception support turned off, you will either need a copy of Boost.Config in your include path, or else manually define BOOST_NO_EXCEPTIONS when building.