Closed dermojo closed 6 years ago
I will take a look into this, but it seems like this is a bug in the implementation. The non owning view should accept everything regardless the callable is copyable or not.
Great, thanks!
Thanks for your bug report. It was fixed due to version v3.1.0.
@Naios
As a workaround for issue #12 I tried to use fu2::function_view instead of a const-ref to a fu2::unique_function. Implicit conversion doesn't work here (it does for std::function). Is this intentional?
Sample code (doesn't compile with GCC/Clang):
The error from Clang looks helpful: