diff options
author | Determinant <[email protected]> | 2018-02-02 19:16:37 -0500 |
---|---|---|
committer | Determinant <[email protected]> | 2018-02-02 19:16:37 -0500 |
commit | 27bd83047dc6d5d0bf137db82f372fcd97656a31 (patch) | |
tree | 32952d63e44c1b5e96400d5a466e62c3a15f4a6a | |
parent | 25c438b9056e2dee99fcc8680a6c295df9aa939e (diff) |
use a separate type for None
-rw-r--r-- | promise.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/promise.hpp b/promise.hpp index 25fbd3b..3d38438 100644 --- a/promise.hpp +++ b/promise.hpp @@ -56,9 +56,9 @@ namespace promise { using bad_any_cast = boost::bad_any_cast; #endif - using None = std::nullptr_t; + struct None {}; using values_t = std::vector<pm_any_t>; - const auto none = nullptr; + const auto none = None(); const auto do_nothing = [](){}; /* match lambdas */ |