Skip to content

Commit 2479368

Browse files
committed
[09/27/2022] 删除Sanity check因为它需要stdc++17
删除Sanity check因为它需要stdc++17
1 parent 4be7f4d commit 2479368

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

matplotlibcpp.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -348,15 +348,6 @@ template <> struct select_npy_type<uint16_t> { const static NPY_TYPES type = NPY
348348
template <> struct select_npy_type<uint32_t> { const static NPY_TYPES type = NPY_ULONG; };
349349
template <> struct select_npy_type<uint64_t> { const static NPY_TYPES type = NPY_UINT64; };
350350

351-
// Sanity checks; comment them out or change the numpy type below if you're compiling on
352-
// a platform where they don't apply
353-
#ifndef _WIN32
354-
static_assert(sizeof(long long) == 8);
355-
template <> struct select_npy_type<long long> { const static NPY_TYPES type = NPY_INT64; };
356-
static_assert(sizeof(unsigned long long) == 8);
357-
template <> struct select_npy_type<unsigned long long> { const static NPY_TYPES type = NPY_UINT64; };
358-
#endif
359-
360351
template<typename Numeric>
361352
PyObject* get_array(const std::vector<Numeric>& v)
362353
{

0 commit comments

Comments
 (0)