LoopPerfect / neither

Either and Maybe monads for better error-handling in C++ ↔️
MIT License
249 stars 18 forks source link

Support for non-copyable objects in lvalues #30

Closed tmattha closed 5 years ago

tmattha commented 5 years ago

!READ DESCRIPTION FIRST! Not up to merge yet.

If you would be willing to adopt these changes I will also adjust neither::Maybe (and neither::lift if needed). Please give feedback if this matches your design concept. Unfortunately I did not find a contribution policy in the repository. :(

Contents This relaxes the restrictions on using the library with types that are not copy-constructible. It leverages the SFINAE idiom to provide proper implementation for types like std::unique_ptrs. This should not change behavior of existing code, as the template candidates only apply to cases, where previously compilation would not be possible.

Changes

tmattha commented 5 years ago

From my understanding the Travis build fails, because buck is not installed on the MacOS slave.

nikhedonia commented 5 years ago

Looks great, thanks!