Closed mystor closed 2 years ago
I unfortunately didn't end up running tests locally (cmake got upset when I asked it to run tests), so I expect that this will fail them.
Ping @Naios, does this approach seem reasonable? I think the build failures are also present without these changes.
Sorry for the delay. I think your changes look good and solve the problem elegantly. I dont think there is any possible solution otherwise (and if there is, it can be implemented in the future). Thank you for your contribution.
This approach roughly matches the one used by std::function, explicitly enumerating the types which are supported for empty propagation.
Fixes #48