summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-05-05 22:15:05 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-05-05 22:15:05 +0100
commita50a1d52818e9a50112b0b6c025386cde77475b0 (patch)
tree40292d7ed825a14bb60154ca52eb95a63e664646
parentVariant fix (diff)
downloadlibjsonpp-a50a1d52818e9a50112b0b6c025386cde77475b0.tar.bz2
libjsonpp-a50a1d52818e9a50112b0b6c025386cde77475b0.tar.xz
libjsonpp-a50a1d52818e9a50112b0b6c025386cde77475b0.zip
Vector
Use vector instead list, it's a better match for what we want.
-rw-r--r--libjsonpp/jsonpp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libjsonpp/jsonpp.h b/libjsonpp/jsonpp.h
index 1a57389..a81e0e7 100644
--- a/libjsonpp/jsonpp.h
+++ b/libjsonpp/jsonpp.h
@@ -4,7 +4,7 @@
#include <glibmm/ustring.h>
#include <variant>
#include <map>
-#include <list>
+#include <vector>
#include <stdexcept>
#pragma GCC visibility push(default)
@@ -26,7 +26,7 @@ namespace json {
public:
using M::M;
};
- typedef std::list<Value> A;
+ typedef std::vector<Value> A;
class Array : public A {
public:
using A::A;