
15 Oct
2021
15 Oct
'21
4:34 p.m.
On Fri, Oct 15, 2021 at 9:04 AM Rainer Deyke via Boost
The following would do the trick:
auto u1 = parse_relative_ref
( "/" ).value(); auto u2 = parse_relative_ref<url>( "/" ).value(); auto u3 = parse_relative_ref >( "/" ).value(); auto u4 = parse_relative_ref ( "/" ).value(); auto u5 = parse_relative_ref >( "/" ).value();
Yeah, kinda. This is not expert friendly but also, does not accommodate this use-case: struct connection { url u_; void process( string_view s ) { u_ = parse_uri( s ); ... } }; In the code above, the capacity for u_ is reused for each I/O cycle. Thanks