Several fixes for compilation with gcc (doesn't link)
This commit is contained in:
parent
a2f39692a2
commit
dd9906dbd8
20 changed files with 379 additions and 262 deletions
|
|
@ -1,7 +1,9 @@
|
|||
#ifndef EXPECTED_H
|
||||
#define EXPECTED_H
|
||||
|
||||
#include <exception>
|
||||
#include <stdexcept>
|
||||
#include <typeinfo>
|
||||
#include <utility>
|
||||
|
||||
template <typename T>
|
||||
class Expected {
|
||||
|
|
@ -168,13 +170,13 @@ public:
|
|||
|
||||
|
||||
Expected(const Expected& rhs)
|
||||
: m_valid(rhs.m_valid)
|
||||
, m_error(rhs.m_error)
|
||||
: m_error(rhs.m_error)
|
||||
, m_valid(rhs.m_valid)
|
||||
{}
|
||||
|
||||
Expected(Expected<void> &&rhs)
|
||||
: m_valid(rhs.m_valid)
|
||||
, m_error(std::move(rhs.m_error))
|
||||
: m_error(std::move(rhs.m_error))
|
||||
, m_valid(rhs.m_valid)
|
||||
{}
|
||||
|
||||
~Expected()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue