0
0
Fork 0
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:
Jason Volk 2020-04-23 04:01:53 -07:00
parent 1920deaedb
commit 32d624e3e9

View file

@ -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();
}