TRIQS / nda

C++ library for multi-dimensional arrays
https://triqs.github.io/nda
Other
15 stars 12 forks source link

Getting enable_if warning #1

Closed emstoudenmire closed 4 years ago

emstoudenmire commented 4 years ago

Prerequisites

Description

Getting warnings such as

scalar.hpp:30:67: warning: 'enable_if' is a
      clang extension [-Wgcc-compat]
  void h5_read_attribute(hid_t id, std::string const &name, T &x) H5_REQUIRES(std::is_arithmet...

Steps to Reproduce

Compiling the code with Apple clang version 11.0.0 (clang-1100.0.33.16) (the latest one on Mac). Using the flag -std=c++17

Expected behavior: no warnings

Actual behavior: warnings

Reproduces how often: every time

emstoudenmire commented 4 years ago

I was able to compile the code successfully though! Thanks, Nils, for helping to split this off from TRIQS and make the dependencies minimal.