matplotlib-cpp icon indicating copy to clipboard operation
matplotlib-cpp copied to clipboard

error C2766

Open dreamslabmg opened this issue 2 years ago • 1 comments

Gravità Codice Descrizione Progetto File Riga Stato eliminazione Errore C2766 specializzazione esplicita; 'matplotlibcpp::detail::select_npy_type<int64_t>' è 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<uint64_t>' è già stato definito BETANumber-Terminal C:\Users\colom\source\repos\matplotlib-cpp\matplotlibcpp.h 356

Come risolvo?

dreamslabmg avatar Mar 26 '23 16:03 dreamslabmg

//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

junqiCao avatar Aug 01 '23 08:08 junqiCao