Commit 491cdff3 authored by Lamar Moore's avatar Lamar Moore
Browse files

Fix GET_POINTER_SPECIALIZATION issue re #20598

parent f30e90af
#ifndef MANTID_PYTHONINTERFACE_KERNEL_GETPOINTER_H_
#define MANTID_PYTHONINTERFACE_KERNEL_GETPOINTER_H_
#if defined(_MSC_FULL_VER) && _MSC_FULL_VER > 190023918
#if defined(_MSC_FULL_VER) && _MSC_FULL_VER > 190023918 && \
_MSC_FULL_VER < 191125506
// Visual Studio Update 3 refuses to link boost python exports that use
// register_ptr_to_python with a virtual base. This is a work around
#define GET_POINTER_SPECIALIZATION(TYPE) \
......
......@@ -24,7 +24,7 @@ using Mantid::Kernel::Unit_sptr;
using Mantid::specnum_t;
using namespace boost::python;
// GET_POINTER_SPECIALIZATION(Axis)
GET_POINTER_SPECIALIZATION(Axis)
namespace {
namespace bpl = boost::python;
......
......@@ -16,7 +16,7 @@ namespace Policies = Mantid::PythonInterface::Policies;
namespace Converters = Mantid::PythonInterface::Converters;
using namespace boost::python;
// GET_POINTER_SPECIALIZATION(IEventList)
GET_POINTER_SPECIALIZATION(IEventList)
/// return_value_policy for copied numpy array
typedef return_value_policy<Policies::VectorToNumpy> return_clone_numpy;
......
......@@ -8,7 +8,7 @@
using Mantid::Geometry::IPeak;
using namespace boost::python;
// GET_POINTER_SPECIALIZATION(IPeak)
GET_POINTER_SPECIALIZATION(IPeak)
namespace {
using namespace Mantid::PythonInterface;
......
......@@ -8,7 +8,7 @@ using Mantid::API::ISpectrum;
using Mantid::detid_t;
using namespace boost::python;
// GET_POINTER_SPECIALIZATION(ISpectrum)
GET_POINTER_SPECIALIZATION(ISpectrum)
void export_ISpectrum() {
register_ptr_to_python<ISpectrum *>();
......
......@@ -16,7 +16,7 @@ using Mantid::Kernel::Property;
using namespace boost::python;
GET_POINTER_SPECIALIZATION(Goniometer)
// GET_POINTER_SPECIALIZATION(Run)
GET_POINTER_SPECIALIZATION(Run)
namespace {
namespace bpl = boost::python;
......
......@@ -15,7 +15,7 @@ using Mantid::API::WorkspaceHistory;
using namespace boost::python;
namespace Policies = Mantid::PythonInterface::Policies;
// GET_POINTER_SPECIALIZATION(WorkspaceHistory)
GET_POINTER_SPECIALIZATION(WorkspaceHistory)
/**
* Return a Python list of history objects from the workspace history as this is
......
......@@ -18,7 +18,7 @@ using Mantid::Kernel::PropertyManager_sptr;
using namespace boost::python;
// GET_POINTER_SPECIALIZATION(PropertyManager)
GET_POINTER_SPECIALIZATION(PropertyManager)
void export_PropertyManager() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment