0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::conf: Add support for double/float through lex_castable.

This commit is contained in:
Jason Volk 2018-11-14 17:16:43 -08:00
parent fb230a6630
commit 895768837f

View file

@ -31,6 +31,8 @@ namespace ircd::conf
template<> struct item<bool>;
template<> struct item<uint64_t>;
template<> struct item<int64_t>;
template<> struct item<float>;
template<> struct item<double>;
template<> struct item<hours>;
template<> struct item<seconds>;
template<> struct item<milliseconds>;
@ -182,6 +184,20 @@ struct ircd::conf::item<int64_t>
using lex_castable::lex_castable;
};
template<>
struct ircd::conf::item<double>
:lex_castable<double>
{
using lex_castable::lex_castable;
};
template<>
struct ircd::conf::item<float>
:lex_castable<float>
{
using lex_castable::lex_castable;
};
template<>
struct ircd::conf::item<ircd::hours>
:lex_castable<ircd::hours>