aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-04-12 16:11:31 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-04-12 22:05:03 -0700
commit6ef84f8a629d3a1578bedb7c02596e81a5e8714b (patch)
tree7ceffd35b6b7ea439d7c9c11955c834d145f8338 /toolsrc/include
parent58f46ab6527b79fcef59cf828133aa9092cba3eb (diff)
downloadvcpkg-6ef84f8a629d3a1578bedb7c02596e81a5e8714b.tar.gz
vcpkg-6ef84f8a629d3a1578bedb7c02596e81a5e8714b.zip
Add default constructor to Optional<T>
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg_optional.h2
1 files changed, 2 insertions, 0 deletions
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() { }