diff options
Diffstat (limited to 'boost/python/numpy/dtype.hpp')
-rw-r--r-- | boost/python/numpy/dtype.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/boost/python/numpy/dtype.hpp b/boost/python/numpy/dtype.hpp index 1284f9e5d8..b9e95f9beb 100644 --- a/boost/python/numpy/dtype.hpp +++ b/boost/python/numpy/dtype.hpp @@ -14,6 +14,7 @@ #include <boost/python.hpp> #include <boost/python/numpy/numpy_object_mgr_traits.hpp> +#include <boost/python/numpy/config.hpp> #include <boost/mpl/for_each.hpp> #include <boost/type_traits/add_pointer.hpp> @@ -25,7 +26,7 @@ namespace boost { namespace python { namespace numpy { * * @todo This could have a lot more interesting accessors. */ -class dtype : public object { +class BOOST_NUMPY_DECL dtype : public object { static python::detail::new_reference convert(object::object_cref arg, bool align); public: @@ -55,7 +56,7 @@ public: * This is more permissive than equality tests. For instance, if long and int are the same * size, the dtypes corresponding to each will be equivalent, but not equal. */ - friend bool equivalent(dtype const & a, dtype const & b); + friend BOOST_NUMPY_DECL bool equivalent(dtype const & a, dtype const & b); /** * @brief Register from-Python converters for NumPy's built-in array scalar types. @@ -69,7 +70,7 @@ public: }; -bool equivalent(dtype const & a, dtype const & b); +BOOST_NUMPY_DECL bool equivalent(dtype const & a, dtype const & b); namespace detail { |