beark / ftl

C++ template library for fans of functional programming
zlib License
992 stars 69 forks source link

maybe.h: Fix up some destructor issues #4

Closed jaredgrubb closed 10 years ago

jaredgrubb commented 10 years ago

Fix up places where this->isValid was being flipped, but the validity of the this->val buffer was not treated the same.

beark commented 10 years ago

The unit test build fails with your changes on maybe.h:339. If you can fix that, I'd be grateful and happy to merge. Also, nicely spotted!

beark commented 10 years ago

Cheers!