mirror of
https://github.com/boostorg/optional.git
synced 2025-07-23 17:17:17 +02:00
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:
@ -13,6 +13,9 @@
|
|||||||
#define BOOST_BAD_OPTIONAL_ACCESS_22MAY2014_HPP
|
#define BOOST_BAD_OPTIONAL_ACCESS_22MAY2014_HPP
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
#if __cplusplus < 201103L
|
||||||
|
#include <string> // to make converting-ctor std::string(char const*) visible
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user