0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-08 13:08:56 +02:00

ircd::mods: Minor cleanup.

This commit is contained in:
Jason Volk 2018-08-17 10:46:28 -07:00
parent 61fade178e
commit af2418b1f5

View file

@ -56,7 +56,10 @@ T &
ircd::mods::sym_ptr::operator*()
{
if(unlikely(expired()))
throw expired_symbol("The reference to a symbol in another module is no longer valid");
throw expired_symbol
{
"The reference to a symbol in another module is no longer valid"
};
return *get<T>();
}
@ -90,7 +93,10 @@ ircd::mods::sym_ptr::operator*()
const
{
if(unlikely(expired()))
throw expired_symbol("The const reference to a symbol in another module is no longer valid");
throw expired_symbol
{
"The const reference to a symbol in another module is no longer valid"
};
return *get<T>();
}