Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2843ebb

Browse files
tomotakaerulava
authored andcommitted
delete unnecessary "inline" on get_array(vector<string>)
1 parent ea527fd commit 2843ebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

matplotlibcpp.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ template <> struct select_npy_type<uint32_t> { const static NPY_TYPES type = NPY
298298
template <> struct select_npy_type<uint64_t> { const static NPY_TYPES type = NPY_UINT64; };
299299

300300
template<typename Numeric>
301-
inline PyObject* get_array(const std::vector<Numeric>& v)
301+
PyObject* get_array(const std::vector<Numeric>& v)
302302
{
303303
detail::_interpreter::get(); //interpreter needs to be initialized for the numpy commands to work
304304
NPY_TYPES type = select_npy_type<Numeric>::type;
@@ -343,7 +343,7 @@ PyObject* get_2darray(const std::vector<::std::vector<Numeric>>& v)
343343
#else // fallback if we don't have numpy: copy every element of the given vector
344344

345345
template<typename Numeric>
346-
inline PyObject* get_array(const std::vector<Numeric>& v)
346+
PyObject* get_array(const std::vector<Numeric>& v)
347347
{
348348
PyObject* list = PyList_New(v.size());
349349
for(size_t i = 0; i < v.size(); ++i) {

0 commit comments

Comments
 (0)