mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 23:44:01 +01:00
ircd:Ⓜ️:error: Use inline linkage for main constructor template.
This commit is contained in:
parent
1604ecd038
commit
1482972e87
1 changed files with 6 additions and 1 deletions
|
@ -116,6 +116,7 @@ namespace ircd::m
|
|||
}
|
||||
|
||||
template<class... args>
|
||||
inline
|
||||
ircd::m::error::error(const http::code &status,
|
||||
const string_view &errcode,
|
||||
const string_view &fmt,
|
||||
|
@ -126,7 +127,10 @@ ircd::m::error::error(const http::code &status,
|
|||
{
|
||||
const string_view str
|
||||
{
|
||||
fmt::sprintf{fmtbuf, fmt, std::forward<args>(a)...}
|
||||
fmt::sprintf
|
||||
{
|
||||
fmtbuf, fmt, std::forward<args>(a)...
|
||||
}
|
||||
};
|
||||
|
||||
return json::members
|
||||
|
@ -138,6 +142,7 @@ ircd::m::error::error(const http::code &status,
|
|||
}{}
|
||||
|
||||
template<class... args>
|
||||
inline
|
||||
ircd::m::error::error(const string_view &errcode,
|
||||
const string_view &fmt,
|
||||
args&&... a)
|
||||
|
|
Loading…
Reference in a new issue