aboutsummaryrefslogtreecommitdiffstats
path: root/json.h
diff options
context:
space:
mode:
authoripkn <ipknhama@gmail.com>2014-04-17 10:06:41 -0400
committeripkn <ipknhama@gmail.com>2014-04-17 10:06:41 -0400
commit86433135f3428cfd3f0184f10411bc169e2ae9b9 (patch)
tree0ebdbf7559ef73c1e69c3f6b0c6627cff422cfcc /json.h
parentd908a2657e67f436f8158436d69c496aab94bdaa (diff)
downloadcrow-86433135f3428cfd3f0184f10411bc169e2ae9b9.tar.gz
crow-86433135f3428cfd3f0184f10411bc169e2ae9b9.zip
response can return json object
Diffstat (limited to 'json.h')
-rw-r--r--json.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/json.h b/json.h
index e060a42..ce32a2b 100644
--- a/json.h
+++ b/json.h
@@ -220,13 +220,18 @@ namespace flask
wvalue() {}
wvalue(wvalue&& r)
- :
- t(r.t),
- d(r.d),
- s{std::move(r.s)},
- l{std::move(r.l)},
- o{std::move(r.o)}
{
+ *this = std::move(r);
+ }
+
+ wvalue& operator = (wvalue&& r)
+ {
+ t = r.t;
+ d = r.d;
+ s = std::move(r.s);
+ l = std::move(r.l);
+ o = std::move(r.o);
+ return *this;
}
void clear()