Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error C2766 #341

Open
dreamslabmg opened this issue Mar 26, 2023 · 1 comment
Open

error C2766 #341

dreamslabmg opened this issue Mar 26, 2023 · 1 comment

Comments

@dreamslabmg
Copy link

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?

@junqiCao
Copy link

junqiCao commented Aug 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants