Mantid
Loading...
Searching...
No Matches
GetPointer.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#if defined(_MSC_FULL_VER) && _MSC_FULL_VER > 190023918 && _MSC_FULL_VER < 191125506
10// Visual Studio Update 3 refuses to link boost python exports that use
11// register_ptr_to_python with a virtual base. This is a work around
12#define GET_POINTER_SPECIALIZATION(TYPE) \
13 namespace boost { \
14 template <> const volatile TYPE *get_pointer(const volatile TYPE *p) { return p; } \
15 }
16#else
17#define GET_POINTER_SPECIALIZATION(TYPE)
18#endif