[pytango] 37/98: Fix compilation error on old platforms
Sandor Bodo-Merle
sbodomerle-guest at moszumanska.debian.org
Thu Sep 28 19:17:42 UTC 2017
This is an automated email from the git hooks/post-receive script.
sbodomerle-guest pushed a commit to tag v9.2.0
in repository pytango.
commit c1976713ec3e79bb673e33baef14f520cca21747
Author: Jose Tiago Coutinho Macara <coutinho at lid00a.esrf.fr>
Date: Mon May 23 09:11:26 2016 +0200
Fix compilation error on old platforms
---
src/boost/cpp/callback.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/boost/cpp/callback.cpp b/src/boost/cpp/callback.cpp
index 06ceaef..935a959 100644
--- a/src/boost/cpp/callback.cpp
+++ b/src/boost/cpp/callback.cpp
@@ -272,8 +272,12 @@ void PyCallBackPushEvent::fill_py_event(Tango::EventData* ev, object & py_ev, ob
// attr_value pointer but its own copy, so my efforts are useless.
if (ev->attr_value)
{
+#ifdef PYTANGO_HAS_UNIQUE_PTR
Tango::DeviceAttribute *attr = new Tango::DeviceAttribute;
(*attr) = std::move(*ev->attr_value);
+#else
+ Tango::DeviceAttribute *attr = new Tango::DeviceAttribute(*ev->attr_value);
+#endif
py_ev.attr("attr_value") = PyDeviceAttribute::convert_to_python(attr, *ev->device, extract_as);
}
// ev->attr_value = 0; // Do not delete, python will.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pytango.git
More information about the debian-science-commits
mailing list