replace null_ptr<>() with nullptr
[libcds.git] / cds / gc / guarded_ptr.h
index be93c5656b954a32b239121dcbed4e293738990f..d59baeed0c866ecf867464aa1402e878b92778d1 100644 (file)
@@ -118,7 +118,7 @@ namespace cds { namespace gc {
         /// Checks if the guarded pointer is \p NULL
         bool empty() const CDS_NOEXCEPT
         {
-            return m_guard.template get<guarded_type>() == null_ptr<guarded_type *>();
+            return m_guard.template get<guarded_type>() == nullptr;
         }
 
         /// Clears guarded pointer
@@ -198,7 +198,7 @@ namespace cds { namespace gc {
 
         bool empty() const CDS_NOEXCEPT
         {
-            return m_guard.template get<guarded_type>() == null_ptr<guarded_type *>();
+            return m_guard.template get<guarded_type>() == nullptr;
         }
 
         void release() CDS_NOEXCEPT