0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 16:34:13 +01:00

ircd:Ⓜ️:error: Use inline linkage for main constructor template.

This commit is contained in:
Jason Volk 2020-08-05 18:48:32 -07:00
parent 1604ecd038
commit 1482972e87

View file

@ -116,6 +116,7 @@ namespace ircd::m
} }
template<class... args> template<class... args>
inline
ircd::m::error::error(const http::code &status, ircd::m::error::error(const http::code &status,
const string_view &errcode, const string_view &errcode,
const string_view &fmt, const string_view &fmt,
@ -126,7 +127,10 @@ ircd::m::error::error(const http::code &status,
{ {
const string_view str const string_view str
{ {
fmt::sprintf{fmtbuf, fmt, std::forward<args>(a)...} fmt::sprintf
{
fmtbuf, fmt, std::forward<args>(a)...
}
}; };
return json::members return json::members
@ -138,6 +142,7 @@ ircd::m::error::error(const http::code &status,
}{} }{}
template<class... args> template<class... args>
inline
ircd::m::error::error(const string_view &errcode, ircd::m::error::error(const string_view &errcode,
const string_view &fmt, const string_view &fmt,
args&&... a) args&&... a)