From 52220a03510a59d1027ca87f3f99655ba20e63c9 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 15 Dec 2023 02:24:18 +0200 Subject: [PATCH] Add definitions of result::in_place_*. Refs #115. --- include/boost/system/result.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/system/result.hpp b/include/boost/system/result.hpp index 833254c..db09455 100644 --- a/include/boost/system/result.hpp +++ b/include/boost/system/result.hpp @@ -450,6 +450,13 @@ public: } }; +#if defined(BOOST_NO_CXX17_INLINE_VARIABLES) + +template constexpr in_place_value_t result::in_place_value; +template constexpr in_place_error_t result::in_place_error; + +#endif + template std::basic_ostream& operator<<( std::basic_ostream& os, result const & r ) { if( r.has_value() )