Added streamable conversions

This commit is contained in:
beder
2011-09-08 00:48:40 -05:00
parent 3b0cc619b2
commit 21fbb461c0
2 changed files with 38 additions and 2 deletions

View File

@@ -7,8 +7,10 @@ int main()
std::cout << value["key"].as<std::string>() << "\n";
value["key"]["key"] = "value";
std::cout << value["key"]["key"].as<std::string>() << "\n";
// value[5] = "monkey";
// std::cout << value[5].as<std::string>() << "\n";
value[5] = "monkey";
std::cout << value[5].as<std::string>() << "\n";
value["monkey"] = 5;
std::cout << value["monkey"].as<int>() << "\n";
return 0;
}