Make sure at least one Boost header (and therefore Boost.Config) precedes std lib headers so that defines in boost/config/user.hpp are seen by system headers.

Fixes #7009.

[SVN r79152]
This commit is contained in:
John Maddock
2012-06-28 10:53:43 +00:00
parent e18682ca74
commit 50795bcfec
4 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,7 @@
#define BOOST_REGEX_SOURCE #define BOOST_REGEX_SOURCE
#include <boost/config.hpp>
#include <climits> #include <climits>
#include <stdexcept> #include <stdexcept>
#include <string> #include <string>

View File

@ -18,6 +18,7 @@
#define BOOST_REGEX_SOURCE #define BOOST_REGEX_SOURCE
#include <boost/config.hpp>
#include <cstdio> #include <cstdio>
#include <boost/regex.hpp> #include <boost/regex.hpp>
#include <boost/cregex.hpp> #include <boost/cregex.hpp>

View File

@ -19,6 +19,7 @@
#define BOOST_REGEX_SOURCE #define BOOST_REGEX_SOURCE
#include <boost/config.hpp>
#include <new> #include <new>
#include <boost/regex.hpp> #include <boost/regex.hpp>
#include <boost/throw_exception.hpp> #include <boost/throw_exception.hpp>

View File

@ -18,6 +18,7 @@
#define BOOST_REGEX_SOURCE #define BOOST_REGEX_SOURCE
#include <boost/config.hpp>
#include <memory> #include <memory>
#include <cstring> #include <cstring>
#include <boost/assert.hpp> #include <boost/assert.hpp>