Hi,
I am trying to check if two persistent_ptr are equal or not using == operator. Here is the sample code-
using namespace pmem;
using namespace pmem::obj;
persistent_ptr<Treenode>child;
persistent_ptr<Treenode>root;
if(operator==(child==root)){
\\do something..
}
I am getting the following error-
error: no matching function for call to ‘operator==(__gnu_cxx::__alloc_traits<std::allocator<pmem::obj::persistent_ptr<PRnode> >, pmem::obj::persistent_ptr<PRnode> >::value_type&, PRnode*)’
126 | if (operator==(parentPtr->childPtrs[i],this)) {
| ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/bits/stl_algobase.h:64,
Can somebody help me figure out how to resolve this error?
Best regards,
Supriya