TartanLlama / function_ref

A lightweight, non-owning reference to a callable.
Creative Commons Zero v1.0 Universal
169 stars 23 forks source link

Bugfix/issue 20 allow non copyable non movable return types #21

Open burnpanck opened 3 years ago

burnpanck commented 3 years ago

This should fix issue #20, by allowing functions that either return a convertible return type or the exact same return type (where mandatory move/copy ellision will kick in).

burnpanck commented 3 years ago

Sorry for all the force-pushing, took me quite a few iterations until I got that AppVeyor test to actually fail!