From 6ef84f8a629d3a1578bedb7c02596e81a5e8714b Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Wed, 12 Apr 2017 16:11:31 -0700 Subject: Add default constructor to Optional --- toolsrc/include/vcpkg_optional.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolsrc/include/vcpkg_optional.h b/toolsrc/include/vcpkg_optional.h index 4a2ceec30..28bdc81fa 100644 --- a/toolsrc/include/vcpkg_optional.h +++ b/toolsrc/include/vcpkg_optional.h @@ -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() { } -- cgit v1.2.3