diff options
Diffstat (limited to 'libxsd')
-rw-r--r-- | libxsd/xsd/cxx/tree/elements.hxx | 13 | ||||
-rw-r--r-- | libxsd/xsd/cxx/tree/elements.ixx | 16 |
2 files changed, 25 insertions, 4 deletions
diff --git a/libxsd/xsd/cxx/tree/elements.hxx b/libxsd/xsd/cxx/tree/elements.hxx index ab96860..8705c20 100644 --- a/libxsd/xsd/cxx/tree/elements.hxx +++ b/libxsd/xsd/cxx/tree/elements.hxx @@ -284,10 +284,15 @@ namespace xsd /** * @brief Default constructor. */ - _type () - : container_ (0) - { - } + _type (); + + /** + * @brief Create an instance from a string. + * + * @param s A string to initialize the instance with. + */ + template <typename C> + _type (const C* s); public: /** diff --git a/libxsd/xsd/cxx/tree/elements.ixx b/libxsd/xsd/cxx/tree/elements.ixx index f1c4b3d..f86cbcc 100644 --- a/libxsd/xsd/cxx/tree/elements.ixx +++ b/libxsd/xsd/cxx/tree/elements.ixx @@ -9,6 +9,22 @@ namespace xsd { namespace tree { + // type + // + + inline _type:: + _type () + : container_ (0) + { + } + + template <typename C> + inline _type:: + _type (const C*) + : container_ (0) + { + } + // simple_type // |