diff --git a/triqs/h5/make_h5_read_write.hpp b/triqs/h5/make_h5_read_write.hpp index 6173e976..ac2e54da 100644 --- a/triqs/h5/make_h5_read_write.hpp +++ b/triqs/h5/make_h5_read_write.hpp @@ -28,7 +28,7 @@ namespace triqs { namespace h5 { template struct has_h5_read : std::false_type {}; - template struct has_h5_read(), std::string(), (T&)(std::declval())))> : std::true_type {}; + template struct has_h5_read(), std::string(), *(std::declval())))> : std::true_type {}; template struct has_h5_write : std::false_type {}; template struct has_h5_write(), std::string(), std::declval()))> : std::true_type {};