diff --git a/c++/nda/h5.hpp b/c++/nda/h5.hpp index ca98c976..99486331 100644 --- a/c++/nda/h5.hpp +++ b/c++/nda/h5.hpp @@ -128,7 +128,7 @@ namespace nda { */ template void h5_write(h5::group g, std::string const &name, A const &a, bool compress = true) { - if constexpr (std::is_same_v, std::string>) { + if constexpr (std::is_same_v, std::string>) { // 1-dimensional array/view of strings h5_write(g, name, detail::to_char_buf(a)); } else if constexpr (is_scalar_v) {