Add default constructor to Optional<T>

This commit is contained in:
Alexander Karatarakis 2017-04-12 16:11:31 -07:00
parent 58f46ab652
commit 6ef84f8a62

View File

@ -15,6 +15,8 @@ namespace vcpkg
class Optional
{
public:
constexpr Optional() : m_is_present(false), m_t() { }
// Constructors are intentionally implicit
constexpr Optional(NullOpt) : m_is_present(false), m_t() { }