mirror of
https://github.com/arcan1s/result.git
synced 2025-04-24 23:47:18 +00:00
allow implicit constructor of Result::Error
This commit is contained in:
parent
4c57042b2f
commit
4a3947fb91
@ -53,7 +53,7 @@ public:
|
|||||||
* @param code
|
* @param code
|
||||||
* machine readable error code
|
* machine readable error code
|
||||||
*/
|
*/
|
||||||
explicit Error(std::string message, ErrorEnum code)
|
Error(std::string message, ErrorEnum code)
|
||||||
: m_code(code)
|
: m_code(code)
|
||||||
{
|
{
|
||||||
m_message = std::move(message);
|
m_message = std::move(message);
|
||||||
|
Loading…
Reference in New Issue
Block a user