diff options
Diffstat (limited to 'butl/optional')
-rw-r--r-- | butl/optional | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/butl/optional b/butl/optional index 0ae7e7b..21d686c 100644 --- a/butl/optional +++ b/butl/optional @@ -11,8 +11,8 @@ namespace butl { // Simple optional class template while waiting for std::optional. // - struct nullopt_t {constexpr nullopt_t (int) {}}; - constexpr const nullopt_t nullopt = 1; + struct nullopt_t {constexpr explicit nullopt_t (int) {}}; + constexpr const nullopt_t nullopt (1); template <typename T> class optional |