aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2018-02-02 19:16:37 -0500
committerDeterminant <[email protected]>2018-02-02 19:16:37 -0500
commit27bd83047dc6d5d0bf137db82f372fcd97656a31 (patch)
tree32952d63e44c1b5e96400d5a466e62c3a15f4a6a
parent25c438b9056e2dee99fcc8680a6c295df9aa939e (diff)
use a separate type for None
-rw-r--r--promise.hpp4
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 */