| 64 | // Basic types |
| 65 | |
| 66 | inline void load(const YAML::Node& node, bool& x) |
| 67 | { |
| 68 | try |
| 69 | { |
| 70 | x = node.as<bool>(); |
| 71 | } |
| 72 | catch (const std::exception & e) |
| 73 | { |
| 74 | std::ostringstream os; |
| 75 | os << "At line " << (node.Mark().line + 1) |
| 76 | << ", '" << node.Tag() << "' parsing boolean failed " |
| 77 | << "with: " << e.what(); |
| 78 | throw Exception(os.str().c_str()); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | inline void load(const YAML::Node& node, double& x) |
| 83 | { |
no test coverage detected