mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
ircd::json: Use inline linkage; prevent PLT entries.
This commit is contained in:
parent
117e1c0f94
commit
45f43dd46a
2 changed files with 5 additions and 5 deletions
|
@ -76,7 +76,7 @@ struct ircd::json::array
|
|||
#include "array_iterator.h"
|
||||
|
||||
template<class T>
|
||||
T
|
||||
inline T
|
||||
ircd::json::array::at(const size_t &i)
|
||||
const try
|
||||
{
|
||||
|
|
|
@ -113,7 +113,7 @@ struct ircd::json::object
|
|||
|
||||
template<ircd::json::name_hash_t key,
|
||||
class T>
|
||||
T
|
||||
inline T
|
||||
ircd::json::at(const object &object)
|
||||
try
|
||||
{
|
||||
|
@ -141,7 +141,7 @@ catch(const bad_lex_cast &e)
|
|||
}
|
||||
|
||||
template<class T>
|
||||
T
|
||||
inline T
|
||||
ircd::json::object::at(const string_view &key)
|
||||
const try
|
||||
{
|
||||
|
@ -170,7 +170,7 @@ catch(const bad_lex_cast &e)
|
|||
|
||||
template<ircd::json::name_hash_t key,
|
||||
class T>
|
||||
T
|
||||
inline T
|
||||
ircd::json::get(const object &object,
|
||||
const T &def)
|
||||
try
|
||||
|
@ -198,7 +198,7 @@ catch(const bad_lex_cast &e)
|
|||
}
|
||||
|
||||
template<class T>
|
||||
T
|
||||
inline T
|
||||
ircd::json::object::get(const string_view &key,
|
||||
const T &def)
|
||||
const try
|
||||
|
|
Loading…
Reference in a new issue