forked from boostorg/beast
Add double conversion for PropertyStream map items
This commit is contained in:
1 parent
f7aa4f9593
commit
61cfa6e37e
2 files changed
+6
No files matched your search
@@ -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