Replace NULL with nullptr
[libcds.git] / cds / gc / guarded_ptr.h
index be93c5656b954a32b239121dcbed4e293738990f..b5781039864f7e93c2e1c579abb9ec08d57cf421 100644 (file)
@@ -115,10 +115,10 @@ namespace cds { namespace gc {
             return *value_cast()( m_guard.template get<guarded_type>() );
         }
 
-        /// Checks if the guarded pointer is \p NULL
+        /// Checks if the guarded pointer is \p nullptr
         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