Skip to content

Commit efa69ad

Browse files
author
kokosxD
committed
Fix explicit specialization has already been defined
On WIndows only
1 parent ef0383f commit efa69ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

matplotlibcpp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,10 +350,12 @@ template <> struct select_npy_type<uint64_t> { const static NPY_TYPES type = NPY
350350

351351
// Sanity checks; comment them out or change the numpy type below if you're compiling on
352352
// a platform where they don't apply
353+
#ifndef _WIN32
353354
static_assert(sizeof(long long) == 8);
354355
template <> struct select_npy_type<long long> { const static NPY_TYPES type = NPY_INT64; };
355356
static_assert(sizeof(unsigned long long) == 8);
356357
template <> struct select_npy_type<unsigned long long> { const static NPY_TYPES type = NPY_UINT64; };
358+
#endif
357359

358360
template<typename Numeric>
359361
PyObject* get_array(const std::vector<Numeric>& v)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy