[MacPorts] #71664: zorba @3.1: error: no member named 'auto_ptr' in namespace 'std'
MacPorts
noreply at macports.org
Sat Dec 28 17:42:21 UTC 2024
#71664: zorba @3.1: error: no member named 'auto_ptr' in namespace 'std'
-------------------------+--------------------
Reporter: ryandesign | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords:
Port: zorba |
-------------------------+--------------------
Comment (by ryandesign):
Here's the full error message:
{{{
src/api/xqueryimpl.cpp:1645:10: error: no member named 'auto_ptr' in
namespace 'std'
std::auto_ptr<IterPrinter> lPrinter;
~~~~~^
}}}
Upstream bug: https://bugs.launchpad.net/zorba/+bug/1210677
No activity there in over 11 years but it suggests that simply replacing
all occurrences of `auto_ptr` with `unique_ptr` would work. Making that
change, the next error I see is:
{{{
src/store/naive/node_items.cpp:1899:12: error: no member named 'mem_fun'
in namespace 'std'; did you mean 'mem_fn'?
std::mem_fun(&XmlNode::unregisterReferencesToDeletedSubtree));
~~~~~^~~~~~~
mem_fn
}}}
Replacing all occurrences of `mem_fun` with `mem_fn`, the code compiles. I
don't know enough C++ to say whether the code is still correct.
--
Ticket URL: <https://trac.macports.org/ticket/71664#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list