Skip to content
Snippets Groups Projects
Commit 57438b96 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix operator bool of cow shared pointer

parent 243131ae
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ public: ...@@ -109,7 +109,7 @@ public:
} }
   
explicit operator bool( ) const { explicit operator bool( ) const {
return getUseCount ( ) == 0; return getUseCount ( ) != 0;
} }
   
private: private:
...@@ -232,7 +232,7 @@ public: ...@@ -232,7 +232,7 @@ public:
} }
   
explicit operator bool( ) const { explicit operator bool( ) const {
return getUseCount ( ) == 0; return getUseCount ( ) != 0;
} }
   
private: private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment