lava / matplotlib-cpp

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

Avoided redefinition. Who requires this? #245

Open shinyaohtani opened 3 years ago

shinyaohtani commented 3 years ago

on my macOS, this conflicts

lava commented 3 years ago

On a linux system this appears to be necessary, e.g. this doesn't compile for me:

#include <cstdint>

template<typename T>
struct foo {
  foo() = delete;
};

template<>
struct foo<unsigned long long> {};

int main() {
  foo<uint64_t> f;
  return 0;
}

I'm told on Windows it leads to a warning, so it looks like some research is required to come up with a solution that works on all platforms.