Add definitions of result<T, E>::in_place_*. Refs #115.

This commit is contained in:
Peter Dimov
2023-12-15 02:24:18 +02:00
parent ffa67ab005
commit 52220a0351

View File

@ -450,6 +450,13 @@ public:
}
};
#if defined(BOOST_NO_CXX17_INLINE_VARIABLES)
template<class T, class E> constexpr in_place_value_t result<T, E>::in_place_value;
template<class T, class E> constexpr in_place_error_t result<T, E>::in_place_error;
#endif
template<class Ch, class Tr, class T, class E> std::basic_ostream<Ch, Tr>& operator<<( std::basic_ostream<Ch, Tr>& os, result<T, E> const & r )
{
if( r.has_value() )