Simplified Node::operator[] interface by removing the C-string overloads, using a helper to_value

This commit is contained in:
Jesse Beder
2012-10-31 18:55:07 -05:00
parent d770a7dc97
commit a645866ffa
2 changed files with 49 additions and 42 deletions

View File

@@ -78,15 +78,7 @@ namespace YAML
const Node operator[](const Node& key) const;
Node operator[](const Node& key);
bool remove(const Node& key);
const Node operator[](const char *key) const;
Node operator[](const char *key);
bool remove(const char *key);
const Node operator[](char *key) const;
Node operator[](char *key);
bool remove(char *key);
private:
explicit Node(detail::node& node, detail::shared_memory_holder pMemory);