From 38f71361fbbba1e8bf23876e218e8622e6cbc406 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 24 Nov 2019 05:00:59 +0300 Subject: [PATCH] Add a convenience instance of empty_init_t (#65) * Added a convenience instance of empty_init_t. Closes https://github.com/boostorg/core/issues/63. --- include/boost/core/empty_value.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/core/empty_value.hpp b/include/boost/core/empty_value.hpp index 7139b3e..d708379 100644 --- a/include/boost/core/empty_value.hpp +++ b/include/boost/core/empty_value.hpp @@ -40,6 +40,9 @@ struct use_empty_value_base { struct empty_init_t { }; +BOOST_INLINE_VARIABLE BOOST_CONSTEXPR_OR_CONST +empty_init_t empty_init = empty_init_t(); + namespace empty_ { template