Bläddra i källkod

express: Fully qualify std::nullptr_t

Sam Edwards 7 år sedan
förälder
incheckning
f0fc6e6d56
2 ändrade filer med 12 tillägg och 12 borttagningar
  1. 6 6
      panda/src/express/weakPointerToBase.I
  2. 6 6
      panda/src/express/weakPointerToBase.h

+ 6 - 6
panda/src/express/weakPointerToBase.I

@@ -297,7 +297,7 @@ operator >= (To *other) const {
  */
  */
 template<class T>
 template<class T>
 INLINE bool WeakPointerToBase<T>::
 INLINE bool WeakPointerToBase<T>::
-operator == (nullptr_t) const {
+operator == (std::nullptr_t) const {
   return _void_ptr == nullptr;
   return _void_ptr == nullptr;
 }
 }
 
 
@@ -306,7 +306,7 @@ operator == (nullptr_t) const {
  */
  */
 template<class T>
 template<class T>
 INLINE bool WeakPointerToBase<T>::
 INLINE bool WeakPointerToBase<T>::
-operator != (nullptr_t) const {
+operator != (std::nullptr_t) const {
   return _void_ptr != nullptr;
   return _void_ptr != nullptr;
 }
 }
 
 
@@ -315,7 +315,7 @@ operator != (nullptr_t) const {
  */
  */
 template<class T>
 template<class T>
 INLINE bool WeakPointerToBase<T>::
 INLINE bool WeakPointerToBase<T>::
-operator > (nullptr_t) const {
+operator > (std::nullptr_t) const {
   return _void_ptr != nullptr;
   return _void_ptr != nullptr;
 }
 }
 
 
@@ -324,7 +324,7 @@ operator > (nullptr_t) const {
  */
  */
 template<class T>
 template<class T>
 INLINE bool WeakPointerToBase<T>::
 INLINE bool WeakPointerToBase<T>::
-operator <= (nullptr_t) const {
+operator <= (std::nullptr_t) const {
   return _void_ptr == nullptr;
   return _void_ptr == nullptr;
 }
 }
 
 
@@ -333,7 +333,7 @@ operator <= (nullptr_t) const {
  */
  */
 template<class T>
 template<class T>
 INLINE bool WeakPointerToBase<T>::
 INLINE bool WeakPointerToBase<T>::
-operator >= (nullptr_t) const {
+operator >= (std::nullptr_t) const {
   return true;
   return true;
 }
 }
 
 
@@ -442,7 +442,7 @@ operator < (const To *other) const {
  */
  */
 template<class T>
 template<class T>
 INLINE bool WeakPointerToBase<T>::
 INLINE bool WeakPointerToBase<T>::
-operator < (nullptr_t) const {
+operator < (std::nullptr_t) const {
   return false;
   return false;
 }
 }
 
 

+ 6 - 6
panda/src/express/weakPointerToBase.h

@@ -60,11 +60,11 @@ public:
   INLINE bool operator <= (To *other) const;
   INLINE bool operator <= (To *other) const;
   INLINE bool operator >= (To *other) const;
   INLINE bool operator >= (To *other) const;
 
 
-  INLINE bool operator == (nullptr_t) const;
-  INLINE bool operator != (nullptr_t) const;
-  INLINE bool operator > (nullptr_t) const;
-  INLINE bool operator <= (nullptr_t) const;
-  INLINE bool operator >= (nullptr_t) const;
+  INLINE bool operator == (std::nullptr_t) const;
+  INLINE bool operator != (std::nullptr_t) const;
+  INLINE bool operator > (std::nullptr_t) const;
+  INLINE bool operator <= (std::nullptr_t) const;
+  INLINE bool operator >= (std::nullptr_t) const;
 
 
   INLINE bool operator == (const WeakPointerToBase<To> &other) const;
   INLINE bool operator == (const WeakPointerToBase<To> &other) const;
   INLINE bool operator != (const WeakPointerToBase<To> &other) const;
   INLINE bool operator != (const WeakPointerToBase<To> &other) const;
@@ -79,7 +79,7 @@ public:
   INLINE bool operator >= (const PointerToBase<To> &other) const;
   INLINE bool operator >= (const PointerToBase<To> &other) const;
 #endif  // WIN32_VC
 #endif  // WIN32_VC
   INLINE bool operator < (const To *other) const;
   INLINE bool operator < (const To *other) const;
-  INLINE bool operator < (nullptr_t) const;
+  INLINE bool operator < (std::nullptr_t) const;
   INLINE bool operator < (const WeakPointerToBase<To> &other) const;
   INLINE bool operator < (const WeakPointerToBase<To> &other) const;
   INLINE bool operator < (const PointerToBase<To> &other) const;
   INLINE bool operator < (const PointerToBase<To> &other) const;
 #endif  // CPPPARSER
 #endif  // CPPPARSER