Add a long overload to UnknownElement for gcc

Originally committed to SVN as r5790.
This commit is contained in:
Thomas Goyne 2011-10-28 20:13:58 +00:00
parent f9f84b18f7
commit 0a04b62d1d
2 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ public:
UnknownElement(const Array& array);
UnknownElement(double number);
UnknownElement(int number);
UnknownElement(long number);
UnknownElement(bool boolean);
UnknownElement(const char *string);
UnknownElement(const String& string);

View File

@ -101,6 +101,7 @@ inline UnknownElement::UnknownElement(const Object& object) : m_pImp(
inline UnknownElement::UnknownElement(const Array& array) : m_pImp( new Imp_T<Array>(array) ) {}
inline UnknownElement::UnknownElement(double number) : m_pImp( new Imp_T<Number>(number) ) {}
inline UnknownElement::UnknownElement(int number) : m_pImp( new Imp_T<Number>(number) ) {}
inline UnknownElement::UnknownElement(long number) : m_pImp( new Imp_T<Number>(number) ) {}
inline UnknownElement::UnknownElement(bool boolean) : m_pImp( new Imp_T<Boolean>(boolean) ) {}
inline UnknownElement::UnknownElement(const char *string) : m_pImp( new Imp_T<String>(string) ) {}
inline UnknownElement::UnknownElement(const String& string) : m_pImp( new Imp_T<String>(string) ) {}