Boost logo

Boost :

From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2021-10-14 01:10:21


On Wed, Oct 13, 2021 at 5:56 PM Gavin Lambert via Boost
<boost_at_[hidden]> wrote:
> (On that note, url::resolve is
> undocumented and doesn't seem to have the correct signature -- having
> both a base and relative parameter only makes sense if it's static or
> free, but it appears to be declared as instance. Unless the instance is
> only used as a completely-replaced output, but that seems weird and a
> free function with return value makes more sense to me.)

Yes `this` is used as a "completely-replace output." A free function
with a return value doesn't work, because there are a few different
flavors of url (url, static_url, and possibly a couple more if users
request them). They differ in how they obtain their storage. But they
use url as a base class. So having `url::resolve` a as member function
makes it all work out.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk