lava / matplotlib-cpp

Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlib
MIT License
4.27k stars 1.12k forks source link

error C2766 #341

Open dreamslabmg opened 1 year ago

dreamslabmg commented 1 year ago

Gravità Codice Descrizione Progetto File Riga Stato eliminazione Errore C2766 specializzazione esplicita; 'matplotlibcpp::detail::select_npy_type' è già stato definito BETANumber-Terminal C:\Users\colom\source\repos\matplotlib-cpp\matplotlibcpp.h 354 Gravità Codice Descrizione Progetto File Riga Stato eliminazione Errore C2766 specializzazione esplicita; 'matplotlibcpp::detail::select_npy_type' è già stato definito BETANumber-Terminal C:\Users\colom\source\repos\matplotlib-cpp\matplotlibcpp.h 356

Come risolvo?

junqiCao commented 11 months ago

//static_assert(sizeof(long long) == 8); //template <> struct select_npy_type { const static NPY_TYPES type = NPY_INT64; }; //static_assert(sizeof(unsigned long long) == 8); //template <> struct select_npy_type { const static NPY_TYPES type = NPY_UINT64; };

Just comment out this code in matplotlibcpp.h line 353 to 356