2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-19 04:22:13 +00:00

Add USE_CONCEPTS guard around unguarded concept.

Fixes #129.
This commit is contained in:
Zach Laine
2024-02-28 22:42:16 -06:00
parent 3e047101f6
commit 51d9b81927

View File

@@ -328,7 +328,11 @@ namespace boost::parser::detail { namespace text {
#endif
{
public:
constexpr char8_view() requires std::default_initializable<V> = default;
constexpr char8_view()
#if BOOST_PARSER_DETAIL_TEXT_USE_CONCEPTS
requires std::default_initializable<V>
#endif
= default;
constexpr char8_view(V base) :
#if BOOST_PARSER_DETAIL_TEXT_USE_CONCEPTS
project_view<V, detail::cast_to_charn<char8_t>{}>{std::move(base)}