From 82ac0b7ecbc145ed8c8ecd8309166f654af1ee75 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 14 Apr 2015 19:06:57 -0700 Subject: 1063 - variable names for surrounding spaces now work This was a pain to debug. --- cpp/010vm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/010vm') diff --git a/cpp/010vm b/cpp/010vm index 54fc8906..2c230c10 100644 --- a/cpp/010vm +++ b/cpp/010vm @@ -46,7 +46,7 @@ struct reagent { reagent(string s); reagent(); void set_value(int v) { value = v; initialized = true; } - string to_string(); + string to_string() const; }; :(before "struct reagent") @@ -192,7 +192,7 @@ Next_recipe_number = 1000; // consistent new numbers for each test // assigned to. properties.push_back(pair >("", vector())); } - string reagent::to_string() { + string reagent::to_string() const { ostringstream out; out << "{name: \"" << name << "\", value: " << value << ", type: "; for (size_t i = 0; i < types.size(); ++i) { -- cgit 1.4.1-2-gfad0