diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-04-29 11:04:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-04-29 11:04:19 +0200 |
commit | 818bedc799073966a4c56fd83ab1df358b9e9c24 (patch) | |
tree | 5d69822c65b645e2ec57506c15b9dee0d188991b /xml/parser.ixx | |
parent | 4e5dc8da6c8ef9ead4fcc6acbbade0cd6bfc61ca (diff) |
Add value<T> version, analogous to attribute<T>
Diffstat (limited to 'xml/parser.ixx')
-rw-r--r-- | xml/parser.ixx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xml/parser.ixx b/xml/parser.ixx index adb8751..ac27b46 100644 --- a/xml/parser.ixx +++ b/xml/parser.ixx @@ -6,6 +6,13 @@ namespace xml { + template <typename T> + inline T parser:: + value () const + { + return value_traits<T>::parse (value (), *this); + } + inline const std::string& parser:: attribute (const std::string& n) const { |