Skip to content

Commit

Permalink
Mac compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ukoethe committed Feb 3, 2016
1 parent 4d3cfa4 commit 2e77163
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions include/vigra/numpy_array_converters.hxx
Expand Up @@ -810,31 +810,35 @@ inline typename std::enable_if<std::is_base_of<PythonMultidefFunctor, Functor>::
void>::type
def(char const* python_name, Functor const & f)
{
static_assert(false, "def(): use multidef() to export multiple overloads.");
static_assert(!std::is_base_of<PythonMultidefFunctor, Functor>::value,
"def(): use multidef() to export multiple overloads.");
}

template <class Functor, class Args>
inline typename std::enable_if<std::is_base_of<PythonMultidefFunctor, Functor>::value,
void>::type
def(char const* python_name, Functor const & f, Args const& args)
{
static_assert(false, "def(): use multidef() to export multiple overloads.");
static_assert(!std::is_base_of<PythonMultidefFunctor, Functor>::value,
"def(): use multidef() to export multiple overloads.");
}

template <class Functor>
inline typename std::enable_if<std::is_base_of<PythonMultidefFunctor, Functor>::value,
void>::type
def(char const* python_name, Functor const & f, const char * help)
{
static_assert(false, "def(): use multidef() to export multiple overloads.");
static_assert(!std::is_base_of<PythonMultidefFunctor, Functor>::value,
"def(): use multidef() to export multiple overloads.");
}

template <class Functor, class Args>
inline typename std::enable_if<std::is_base_of<PythonMultidefFunctor, Functor>::value,
void>::type
def(char const* python_name, Functor const & f, Args const& args, const char * help)
{
static_assert(false, "def(): use multidef() to export multiple overloads.");
static_assert(!std::is_base_of<PythonMultidefFunctor, Functor>::value,
"def(): use multidef() to export multiple overloads.");
}

}} // namespace boost::python
Expand Down

0 comments on commit 2e77163

Please sign in to comment.