From ab48c2eafb3becdfc3892a965660807fac2ed60e Mon Sep 17 00:00:00 2001 From: Hans Dembinski Date: Mon, 18 Jul 2016 22:33:16 -0400 Subject: [PATCH] fixing syntax --- include/boost/histogram/static_storage.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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: