Supply <string> to fix C++03 compile error on logic_error("...")

This change makes the library usable (again) on C++03 standard library
implementations where <stdexcept> doesn't imply inclusion of <string>,
e.g. STLport.
This commit is contained in:
Kazutoshi SATODA
2014-08-27 01:57:51 +09:00
parent fea4882f24
commit d4a4cdca1d

View File

@ -13,6 +13,9 @@
#define BOOST_BAD_OPTIONAL_ACCESS_22MAY2014_HPP
#include <stdexcept>
#if __cplusplus < 201103L
#include <string> // to make converting-ctor std::string(char const*) visible
#endif
namespace boost {