Skip to content

Commit

Permalink
The (old) version of SWIG we're using doesn't like certain C++11 feat…
Browse files Browse the repository at this point in the history
…ures.
  • Loading branch information
Dan Smith committed Feb 8, 2021
1 parent 53bdeab commit 1b5abba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/c++/xml.lite/include/xml/lite/Attributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -581,6 +584,7 @@ inline bool setValue(Attributes& attributes, const std::string & uri, const std:
{
return setValue(attributes, uri, localName, value, details::toString<T>);
}
#endif // SWIG

}
}
Expand Down
4 changes: 4 additions & 0 deletions modules/c++/xml.lite/include/xml/lite/Element.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -526,6 +529,7 @@ inline void setValue(Element& element, const T& value)
{
setValue(element, value, details::toString<T>);
}
#endif // SWIG

}
}
Expand Down

0 comments on commit 1b5abba

Please sign in to comment.