Skip to content
Snippets Groups Projects
Commit c6accbd2 authored by looooo's avatar looooo
Browse files

workaround for windows vs2015 compilation

parent 417c2f0e
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,7 @@
#include <boost/python.hpp>
namespace {
namespace{
class tSizeChangeNotifier;
......@@ -278,5 +276,4 @@ class tForeignArray : public tReadOnlyForeignArray<ElementT>
#endif
......@@ -22,8 +22,6 @@ using namespace boost::python;
}
namespace {
/* This wrap helper works as long as the value_type is a plain old data (POD)
* type.
......
......@@ -14,7 +14,27 @@ namespace py = boost::python;
using namespace std;
namespace boost {
template <>
inline tForeignArray<struct tetgenio::polygon> const volatile * get_pointer(class tForeignArray<struct tetgenio::polygon> const volatile *tF) {
return tF;
}
template <>
inline tForeignArray<struct tetgenio::facet> const volatile * get_pointer(class tForeignArray<struct tetgenio::facet> const volatile *tF) {
return tF;
}
template <>
inline tForeignArray<int> const volatile * get_pointer(class tForeignArray<int> const volatile *tF) {
return tF;
}
template <>
inline tForeignArray<double> const volatile * get_pointer(class tForeignArray<double> const volatile *tF) {
return tF;
}
}
namespace
{
......
......@@ -11,6 +11,18 @@ using namespace boost::python;
using namespace std;
namespace boost {
template <>
inline tForeignArray<int> const volatile * get_pointer(class tForeignArray<int> const volatile *tF) {
return tF;
}
template <>
inline tForeignArray<double> const volatile * get_pointer(class tForeignArray<double> const volatile *tF) {
return tF;
}
}
struct tMeshInfo : public triangulateio, public boost::noncopyable
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment