Boost logo

Boost :

From: Jean-Louis Leroy (jl_at_[hidden])
Date: 2025-05-05 00:40:44


> > For example:
> >
> > struct dynamic_policy
> > : boost::openmethod::default_policy::fork<dynamic_policy>::replace<
> > boost::openmethod::policies::extern_vptr,
> > boost::openmethod::policies::vptr_vector<
> > dynamic_policy,
> > boost::openmethod::policies::indirect_vptr>> {};
> >
> > Committing this code to any project I've worked on would've left most of my
> > coworkers absolutely checked out.
>
> Yeah, that's a mouthful.

With the changes in the "review" branch, it now reads:

    struct dynamic_policy
        : boost::openmethod::default_policy::fork<dynamic_policy>::with<
            boost::openmethod::policies::indirect_vptr> {};

See policy.adoc for more information and examples.

J-L


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