C++Now 2015 has ended
Please visit the C++Now website.
Back To Schedule
Tuesday, May 12 • 4:30pm - 6:00pm
Yomm11: Open Multi-Methods for C++11

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Open methods - virtual functions declared outside a class - solve many important problems: they make components more extensible; they help reduce coupling by allowing a better partitioning of responsibilities; and they solve the problem of sewing together layers in multi-tier architectures. Multi-methods - methods dispatched based on the dynamic type of more than one argument - sometimes come handy when dealing with situations like matrix addition or as a replacement for the Visitor pattern. Multi-methods extend to run time the multi-argument selection found in function overloading and template specialization.

A proposal to support open multi-methods was submitted by Bjarne Stroustrup and col. but failed to gain acceptance so far. C++11 makes it possible to support them in a library with a reasonable syntactic burden.


avatar for Jean-Louis Leroy

Jean-Louis Leroy

Senior Software Engineer, Bloomberg LP
I am the author of yomm2, a library that implements open multi-methods. See https://github.com/jll63/yomm2

Tuesday May 12, 2015 4:30pm - 6:00pm MDT

Attendees (0)