Boost logo

Boost :

Subject: Re: [boost] yomm2 - open methods
From: Zach Laine (whatwasthataddress_at_[hidden])
Date: 2018-01-19 20:26:52


On Fri, Jan 19, 2018 at 1:24 PM, Steven Watanabe via Boost <
boost_at_[hidden]> wrote:

> AMDG
>
> On 01/19/2018 11:23 AM, Jean-Louis Leroy via Boost wrote:
> > in 2013 I posted a proposal for an "open multi-methods" library, see
> > here: https://lists.boost.org/Archives/boost/2013/07/205383.php Due to
> > insufficient interest, I did not go forward with a formal submission,
> > and I published my work on github, under the name yomm11.
> >
> > I have now completely rewritten the library. The new version - yomm2 -
> > is available here: https://github.com/jll63/yomm2 This iteration is
> > much better because it does not require any modifications to classes
> > involved in method dispatch, yet the speed of a method call with one
> > virtual argument is within 15% of the equivalent virtual function
> > call.
> >
>
> So, if it's fully non-intrusive, can it be made
> to work with boost::any or Boost.TypeErasure?
>

This was the first thing that occurred to me, too. A graceful way to do
dynamic re-binding of erased types is something I want.

zach


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