Skip to content

Commit

Permalink
refactor: no deprecated variant2 alias from API
Browse files Browse the repository at this point in the history
fix #857
  • Loading branch information
alandefreitas committed Oct 2, 2024
1 parent 64087ba commit e732c4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/boost/url/grammar/impl/variant_rule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ parse_variant(
std::integral_constant<
std::size_t, I> const&,
std::false_type const&) ->
system::result<variant<
system::result<variant2::variant<
typename R0::value_type,
typename Rn::value_type...>>
{
Expand All @@ -57,15 +57,15 @@ parse_variant(
std::integral_constant<
std::size_t, I> const&,
std::true_type const&) ->
system::result<variant<
system::result<variant2::variant<
typename R0::value_type,
typename Rn::value_type...>>
{
auto const it0 = it;
auto rv = parse(
it, end, get<I>(rn));
if( rv )
return variant<
return variant2::variant<
typename R0::value_type,
typename Rn::value_type...>{
variant2::in_place_index_t<I>{}, *rv};
Expand Down
4 changes: 2 additions & 2 deletions test/unit/grammar/variant_rule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ struct variant_rule_test
(void)rv;
}

ok(r, "(", variant<core::string_view, core::string_view>(
ok(r, "(", variant2::variant<core::string_view, core::string_view>(
variant2::in_place_index_t<0>{}, "("));
ok(r, ")", variant<core::string_view, core::string_view>(
ok(r, ")", variant2::variant<core::string_view, core::string_view>(
variant2::in_place_index_t<1>{}, ")"));
bad(r, "", error::mismatch);
bad(r, "[]", error::mismatch);
Expand Down

0 comments on commit e732c4c

Please sign in to comment.