From 7ce74ce206065c3af0035583330b3c773086f21c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 3 Nov 2016 00:44:53 +0300 Subject: Invent auto_fd, make use of it in fdstreams and process --- butl/optional | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'butl/optional') 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 class optional -- cgit v1.1