c++ - change types order in boost::variant to move std::string to the end

("By default, a variant default-constructs its first bounded type..")
This commit is contained in:
artemp
2014-02-10 12:24:48 +00:00
parent 5e87cfed5a
commit 0157e4f140

View File

@@ -6,7 +6,7 @@
namespace llmr {
typedef boost::variant<std::string, double, int64_t, uint64_t, bool> Value;
typedef boost::variant<bool, int64_t, uint64_t, double, std::string> Value;
Value parseValue(pbf data);