Merge pull request #466 from wnself/patch-1

Fix wvalue::operator = (wvalue && r); Number type loss problem
This commit is contained in:
Farook Al-Sammarraie 2022-06-20 06:24:18 +03:00 committed by GitHub
commit 5cdc2fcc2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -681,7 +681,7 @@ namespace crow
return (option_ & error_bit) != 0;
}
std::vector<std::string> keys()
std::vector<std::string> keys() const
{
#ifndef CROW_JSON_NO_ERROR_CHECK
if (t() != type::Object)
@ -1473,6 +1473,7 @@ namespace crow
wvalue& operator=(wvalue&& r)
{
t_ = r.t_;
nt = r.nt;
num = r.num;
s = std::move(r.s);
l = std::move(r.l);