ldionne / dyno

Runtime polymorphism done right
Boost Software License 1.0
975 stars 43 forks source link

Consider adding support for assignment from another poly that has a subset of the requirements #24

Open ldionne opened 7 years ago

ldionne commented 7 years ago

Right now, polys can only be copy-constructed. It might be useful to allow polys to be created from any other poly that has a superset of the requirements. This would require the ability to copy the right parts of the vtable into the destination poly, but that might be inefficient.

Thanks to @atomgalaxy for proposing that feature.