diff --git a/include/boost/histogram/static_storage.hpp b/include/boost/histogram/static_storage.hpp index bd111167..5d9b0b51 100644 --- a/include/boost/histogram/static_storage.hpp +++ b/include/boost/histogram/static_storage.hpp @@ -27,7 +27,7 @@ namespace histogram { data_(other.size() * sizeof(T)) { for (std::size_t i = 0, n = size(); i < n; ++i) - data_.get(i) = other.data_.get(i); + data_.get(i) = other.data_.template get(i); } template ::value>> @@ -40,7 +40,7 @@ namespace histogram { { data_ = buffer_t(other.size() * sizeof(T)); for (std::size_t i = 0, n = size(); i < n; ++i) - data_.get(i) = other.data_.get(i); + data_.get(i) = other.data_.template get(i); } template ::value>> @@ -55,14 +55,14 @@ namespace histogram { value_t value(std::size_t i) const { return data_.get(i); } variance_t variance(std::size_t i) const { return data_.get(i); } - + bool operator==(const static_storage& other) const { return data_ == other.data_; } template void operator+=(const static_storage& other) { for (std::size_t i = 0, n = size(); i < n; ++i) - data_.get(i) += other.data_.get(i); + data_.get(i) += other.data_.template get(i); } private: