Get rid of warnings in nullable.hpp (#3617)
This commit is contained in:
parent
e010b9176b
commit
b9fb5efb6a
@ -59,7 +59,7 @@ public:
|
||||
* @param other Another `%Nullable` instance to copy.
|
||||
*/
|
||||
Nullable(const Nullable& other) noexcept(std::is_nothrow_copy_constructible<T>::value)
|
||||
: m_hasValue(other.m_hasValue)
|
||||
: m_disengaged{}, m_hasValue(other.m_hasValue)
|
||||
{
|
||||
if (m_hasValue)
|
||||
{
|
||||
@ -73,7 +73,7 @@ public:
|
||||
* @param other A `%Nullable` instance to move into the instance being constructed.
|
||||
*/
|
||||
Nullable(Nullable&& other) noexcept(std::is_nothrow_move_constructible<T>::value)
|
||||
: m_hasValue(other.m_hasValue)
|
||||
: m_disengaged{}, m_hasValue(other.m_hasValue)
|
||||
{
|
||||
if (m_hasValue)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user