diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-12 16:11:31 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-12 22:05:03 -0700 |
| commit | 6ef84f8a629d3a1578bedb7c02596e81a5e8714b (patch) | |
| tree | 7ceffd35b6b7ea439d7c9c11955c834d145f8338 /toolsrc/include | |
| parent | 58f46ab6527b79fcef59cf828133aa9092cba3eb (diff) | |
| download | vcpkg-6ef84f8a629d3a1578bedb7c02596e81a5e8714b.tar.gz vcpkg-6ef84f8a629d3a1578bedb7c02596e81a5e8714b.zip | |
Add default constructor to Optional<T>
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg_optional.h | 2 |
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() { } |
