mirror of
https://github.com/arcan1s/result.git
synced 2025-04-25 07:57:17 +00:00
add default Result::Result constructor
This commit is contained in:
parent
4a3947fb91
commit
65b5c8cc1d
@ -110,6 +110,10 @@ template <class T, typename ErrorEnum>
|
|||||||
class Result : public std::variant<T, Error<ErrorEnum>>
|
class Result : public std::variant<T, Error<ErrorEnum>>
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* @brief default class constructor
|
||||||
|
*/
|
||||||
|
Result() = default;
|
||||||
/**
|
/**
|
||||||
* @brief Result constructor with value
|
* @brief Result constructor with value
|
||||||
* @param value
|
* @param value
|
||||||
|
Loading…
Reference in New Issue
Block a user