
6 May
2025
6 May
'25
11:28 p.m.
You mean like this? BOOST_OPENMETHOD(poke, (std::ostream& a, virtual_ptr<Animal> b) -> void)
That's possible. You can get a function type by prepending auto, which can be used for most template parameters and (with some metaprogramming) the return type.
I'll try. That was the "problem" that jumped to my eyes. Perhaps it's not the only one, and if not, perhaps you'll come up with a solution if I fail to find one ;-)