forked from boostorg/regex
Fixed by adding BOOST_REGEX_NO_EXTERNAL_TEMPLATES define and extra error checks.
[SVN r17264]
This commit is contained in:
@ -19,15 +19,23 @@
|
||||
* VERSION see <boost/version.hpp>
|
||||
* DESCRIPTION: Includes all the regex source files, include this
|
||||
* file only if you need to build the regex library
|
||||
* as a single file. Before including this file you
|
||||
* must define BOOST_REGEX_NO_LIB, or include this file
|
||||
* as a single file. You must include this file
|
||||
* before any other regex header.
|
||||
*
|
||||
* CAUTION: THIS FILE IS DEPRICATED AND WILL CAUSE
|
||||
* UNNECESSARY CODE BLOAT.
|
||||
*/
|
||||
|
||||
#if !defined(BOOST_REGEX_NO_LIB) && defined(BOOST_REGEX_CONFIG_HPP)
|
||||
#error too late you have already included a regex header - try defining BOOST_REGEX_NO_LIB when you build
|
||||
#if (!defined(BOOST_REGEX_NO_LIB) || !defined(BOOST_REGEX_NO_EXTERNAL_TEMPLATES)) && defined(BOOST_REGEX_CONFIG_HPP)
|
||||
#error too late you have already included a regex header - make sure that you include this header before any other boost header
|
||||
#endif
|
||||
|
||||
#define BOOST_REGEX_NO_LIB
|
||||
#define BOOST_REGEX_STATIC_LINK
|
||||
#define BOOST_REGEX_NO_EXTERNAL_TEMPLATES
|
||||
|
||||
#include <boost/regex.hpp>
|
||||
|
||||
//
|
||||
// include library source files:
|
||||
//
|
||||
@ -47,3 +55,4 @@
|
||||
#include "libs/regex/src/regex_debug.cpp"
|
||||
#include "libs/regex/src/regex_synch.cpp"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user