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:
parent
fb230a6630
commit
895768837f
1 changed files with 16 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue