mirror of
https://github.com/matrix-construct/construct
synced 2024-06-03 02:28:55 +02:00
ircd::util: Add overload for what() on std::exception value-type.
This commit is contained in:
parent
1920deaedb
commit
32d624e3e9
|
@ -11,8 +11,15 @@
|
|||
#pragma once
|
||||
#define HAVE_IRCD_UTIL_WHAT_H
|
||||
|
||||
namespace ircd {
|
||||
inline namespace util
|
||||
namespace ircd { inline namespace util
|
||||
{
|
||||
string_view what(const std::exception_ptr eptr = std::current_exception()) noexcept;
|
||||
string_view what(const std::exception &) noexcept;
|
||||
}}
|
||||
|
||||
inline ircd::string_view
|
||||
ircd::util::what(const std::exception &e)
|
||||
noexcept
|
||||
{
|
||||
return e.what();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue