mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 04:58:04 +08:00
Add default constructor to Optional<T>
This commit is contained in:
parent
58f46ab652
commit
6ef84f8a62
@ -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() { }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user