aboutsummaryrefslogtreecommitdiff
path: root/butl/optional
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-11-03 00:44:53 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-11-03 13:47:43 +0300
commit7ce74ce206065c3af0035583330b3c773086f21c (patch)
treefc0fb1d9bd0037299f12a27f1f38ac5056634568 /butl/optional
parentcc8a2a1517cc3c55bdeb066a038868fb8c7f04d6 (diff)
Invent auto_fd, make use of it in fdstreams and process
Diffstat (limited to 'butl/optional')
-rw-r--r--butl/optional4
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