mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Add double conversion for PropertyStream map items
This commit is contained in:
@@ -62,6 +62,7 @@ protected:
|
||||
virtual void add (std::string const& key, uint32 value);
|
||||
virtual void add (std::string const& key, int64 value);
|
||||
virtual void add (std::string const& key, uint64 value);
|
||||
virtual void add (std::string const& key, double value);
|
||||
|
||||
virtual void array_begin () = 0;
|
||||
virtual void array_begin (std::string const& key) = 0;
|
||||
|
||||
@@ -390,6 +390,11 @@ void PropertyStream::add (std::string const& key, int64 value)
|
||||
}
|
||||
}
|
||||
|
||||
void PropertyStream::add (std::string const& key, double value)
|
||||
{
|
||||
lexical_add (key, value);
|
||||
}
|
||||
|
||||
void PropertyStream::add (std::string const& key, uint64 value)
|
||||
{
|
||||
if (value <= std::numeric_limits <uint32>::max() &&
|
||||
|
||||
Reference in New Issue
Block a user