custom variant type (replaces boost::variant and removes boost dependency altogether)

This commit is contained in:
artemp
2014-02-12 14:32:54 +00:00
parent b78df1903a
commit 0939acca30
5 changed files with 386 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ llmr::Value llmr::parseValue(pbf data) {
case 1: // string_value
return data.string();
case 2: // float_value
return data.float32();
return static_cast<double>(data.float32());
case 3: // double_value
return data.float64();
case 4: // int_value