nsgml: Resolve symbol collision when building with SunStudio 12.1

This commit is contained in:
Matthew R. Trower 2018-06-13 22:16:14 -05:00 committed by Jon Trulson
parent 55b4e2f240
commit 6715300820
1 changed files with 7 additions and 0 deletions

View File

@ -93,7 +93,14 @@ public:
const T &operator*() const { return *Ptr<T>::pointer(); }
void swap(ConstPtr<T> &p) { Ptr<T>::swap(p); }
using Ptr<T>::isNull;
#if defined(__SUNPRO_CC) && __SUNPRO_CC == 0x5100
/* Needed to avoid symbol export collision */
void clear() { Ptr<T>::clear(); }
#else
using Ptr<T>::clear;
#endif
Boolean operator==(const Ptr<T> &p) const { return Ptr<T>::operator==(p); }
Boolean operator!=(const Ptr<T> &p) const { return Ptr<T>::operator!=(p); }
Boolean operator==(const ConstPtr<T> &p) const {