From 27bd83047dc6d5d0bf137db82f372fcd97656a31 Mon Sep 17 00:00:00 2001 From: Determinant Date: Fri, 2 Feb 2018 19:16:37 -0500 Subject: use a separate type for None --- promise.hpp | 4 ++-- 1 file 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; - const auto none = nullptr; + const auto none = None(); const auto do_nothing = [](){}; /* match lambdas */ -- cgit v1.2.3-70-g09d2