search for: jsonsourc

Displaying 1 result from an estimated 1 matches for "jsonsourc".

Did you mean: jsonsource
2013 Mar 11
0
[LLVMdev] YAML IO problems
...ed("directory", fb.directory); io.mapRequired("suffix", fb.suffix); io.mapRequired("int_test", fb.intTest); } }; } } int main() { ifstream jsonFile("yaml.json"); if (jsonFile.is_open()) { // Read file into a string string jsonSource((istreambuf_iterator<char>(jsonFile)), istreambuf_iterator<char>()); jsonFile.close(); FooBar doc; Input yin(jsonSource.c_str()); yin >> doc; cout << "bool_test: " << (doc.boolTest ? "true" : "false...