From 2bd2058dd4935fbc0374de1a5b2c1d6278f0fcd6 Mon Sep 17 00:00:00 2001 From: Yantao Xie Date: Mon, 24 Aug 2015 16:41:42 +0800 Subject: [PATCH] Add a default constructor for ndarray. --- boost/numpy/ndarray.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boost/numpy/ndarray.hpp b/boost/numpy/ndarray.hpp index 8c2a262..69327cc 100644 --- a/boost/numpy/ndarray.hpp +++ b/boost/numpy/ndarray.hpp @@ -137,6 +137,9 @@ class ndarray : public python::object * @internal This is simply a call to PyArray_Return(); */ python::object scalarize() const; + public: + ndarray() + :python::object() {} }; /**