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:
parent
1604ecd038
commit
1482972e87
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue