On 15.10.21 17:13, Vinnie Falco via Boost wrote:
How would you convert this code to use "safer parse_url(str)"?
url_view u1 = parse_relative_ref( "/" ).value(); url u2 = parse_relative_ref( "/" ).value(); static_url<1024> u3 = parse_relative_ref( "/" ).value(); pmr_url u4 = parse_relative_ref( "/" ).value(); dynamic_url< std::allocator<char>> u5 = parse_relative_ref( "/" ).value();
The following would do the trick:
auto u1 = parse_relative_ref