forked from Alepha/Alepha
Fix the aliasing of what
in exceptions.
This commit is contained in:
@ -484,6 +484,7 @@ namespace Alepha::Hydrogen ::detail:: Exception_m
|
||||
explicit Error( std::string message ) : MessageStorage( std::move( message ) ) {}
|
||||
|
||||
using Exception::message;
|
||||
using std::exception::what;
|
||||
};
|
||||
|
||||
return Error{ std::move( message ) };
|
||||
@ -502,6 +503,7 @@ namespace Alepha::Hydrogen ::detail:: Exception_m
|
||||
public:
|
||||
explicit Error( std::string message ) : MessageStorage( std::move( message ) ) {}
|
||||
using Exception::message;
|
||||
using std::exception::what;
|
||||
};
|
||||
|
||||
return Error{ std::move( message ) };
|
||||
@ -521,6 +523,7 @@ namespace Alepha::Hydrogen ::detail:: Exception_m
|
||||
public:
|
||||
explicit Error( std::string message ) : MessageStorage( std::move( message ) ) {}
|
||||
using Exception::message;
|
||||
using std::exception::what;
|
||||
};
|
||||
|
||||
return Error{ std::move( message ) };
|
||||
|
Reference in New Issue
Block a user