Opened 8 years ago
Closed 7 years ago
#11078 closed Bugs (fixed)
Missing header file in type_erasure/exception.hpp causes several tests in type_erasure to fail
Reported by: | Owned by: | Steven Watanabe | |
---|---|---|---|
Milestone: | To Be Determined | Component: | type_erasure |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: | sergey.sprogis@… |
Description
Compiling with Oracle Solaris Studio 12.4 on Solaris11.2, several type_erasure tests fail as follows:
"../boost/type_erasure/exception.hpp", line 29: Error: Could not find std::invalid_argument::invalid_argument(const char[18]) to initialize base class. "../boost/type_erasure/exception.hpp", line 29: Error: Could not find a match for std::invalid_argument::invalid_argument(boost::type_erasure::bad_function_call, const char[18]) needed in boost::type_erasure::bad_function_call::bad_function_call().
Adding <string> header file to boost/type_erasure/exception.hpp seems to resolve the issue.
% diff ./exception.hpp_orig exception.hpp 15a16
#include <string>
%
Fixed in https://github.com/boostorg/type_erasure/commit/883a566ab9d22a5242918b2472e94c0db663b697