majintao0131 / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

In the new API, as<T> should accept a default parameter #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
E.g.,

node.as<int>(42);

would return 42 if the node is undefined, instead of throwing.

Original issue reported on code.google.com by jbe...@gmail.com on 28 Nov 2011 at 5:57

GoogleCodeExporter commented 9 years ago
Done, rb2c31b7ac642.

Original comment by jbe...@gmail.com on 12 Jan 2012 at 7:03