Make sure std::string constructor is available

.. because <stdexcept> only needs to have a forward declaration of
std::string. But that's not enough to invoke constructors of
std::exception (and derivatives) if we don't have a reference to an
std::string handy.
This commit is contained in:
Giel van Schijndel
2015-10-30 14:23:37 +01:00
parent a91f6d317b
commit f60f0bde95

View File

@@ -24,6 +24,7 @@
#ifndef BOOST_NO_EXCEPTIONS #ifndef BOOST_NO_EXCEPTIONS
#include <stdexcept> //for std exception types #include <stdexcept> //for std exception types
#include <string> //for implicit std::string conversion
#include <new> //for std::bad_alloc #include <new> //for std::bad_alloc
#else #else
#include <boost/assert.hpp> #include <boost/assert.hpp>