Commit 5b998320 authored by Matthias Vallentin's avatar Matthias Vallentin

Allow for default construction of optional<T>.

parent fced2111
......@@ -62,7 +62,7 @@ class optional {
/**
* @post <tt>valid() == false</tt>
*/
optional(const none_t&) : m_valid(false) { }
optional(const none_t& = none) : m_valid(false) { }
/**
* @brief Creates an @p option from @p value.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment