From 51d9b819271ff0ea5ded77d206f6fcb507bc83db Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Wed, 28 Feb 2024 22:42:16 -0600 Subject: [PATCH] Add USE_CONCEPTS guard around unguarded concept. Fixes #129. --- include/boost/parser/detail/text/transcode_view.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/boost/parser/detail/text/transcode_view.hpp b/include/boost/parser/detail/text/transcode_view.hpp index 92f439a8..8eaedab2 100644 --- a/include/boost/parser/detail/text/transcode_view.hpp +++ b/include/boost/parser/detail/text/transcode_view.hpp @@ -328,7 +328,11 @@ namespace boost::parser::detail { namespace text { #endif { public: - constexpr char8_view() requires std::default_initializable = default; + constexpr char8_view() +#if BOOST_PARSER_DETAIL_TEXT_USE_CONCEPTS + requires std::default_initializable +#endif + = default; constexpr char8_view(V base) : #if BOOST_PARSER_DETAIL_TEXT_USE_CONCEPTS project_view{}>{std::move(base)}