diff --git a/modules/c++/xml.lite/include/xml/lite/Attributes.h b/modules/c++/xml.lite/include/xml/lite/Attributes.h index 69fdd071e..6fc7cc0ec 100644 --- a/modules/c++/xml.lite/include/xml/lite/Attributes.h +++ b/modules/c++/xml.lite/include/xml/lite/Attributes.h @@ -380,6 +380,9 @@ class Attributes Attributes_T mAttributes; }; +#ifndef SWIG +// The (old) version of SWIG we're using doesn't like certain C++11 features. + /*! * Look up an attribute's value by an arbitrary key. * \param key The key for the attribute we want @@ -581,6 +584,7 @@ inline bool setValue(Attributes& attributes, const std::string & uri, const std: { return setValue(attributes, uri, localName, value, details::toString); } +#endif // SWIG } } diff --git a/modules/c++/xml.lite/include/xml/lite/Element.h b/modules/c++/xml.lite/include/xml/lite/Element.h index 956ecf9d0..722ee5d9d 100644 --- a/modules/c++/xml.lite/include/xml/lite/Element.h +++ b/modules/c++/xml.lite/include/xml/lite/Element.h @@ -471,6 +471,9 @@ class Element const std::string& formatter) const; }; +#ifndef SWIG +// The (old) version of SWIG we're using doesn't like certain C++11 features. + /*! * Returns the character data of this element converted to the specified type. * \param value the charater data as T @@ -526,6 +529,7 @@ inline void setValue(Element& element, const T& value) { setValue(element, value, details::toString); } +#endif // SWIG } }