0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::json: Use inline linkage; prevent PLT entries.

This commit is contained in:
Jason Volk 2020-08-02 09:13:08 -07:00
parent 117e1c0f94
commit 45f43dd46a
2 changed files with 5 additions and 5 deletions

View file

@ -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
{

View file

@ -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