From f76a66d55805d7aca85d432c9aae26444306e3cc Mon Sep 17 00:00:00 2001 From: Andreas Schenk <andreas_schenk@hms.harvard.edu> Date: Mon, 9 Jul 2012 00:20:40 -0400 Subject: [PATCH] removed dllexport from stat_accumulator as it is header only --- modules/img/alg/src/stat_accumulator.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/img/alg/src/stat_accumulator.hh b/modules/img/alg/src/stat_accumulator.hh index a07d6219e..53399f8be 100644 --- a/modules/img/alg/src/stat_accumulator.hh +++ b/modules/img/alg/src/stat_accumulator.hh @@ -27,7 +27,7 @@ namespace ost { namespace img { namespace alg { template<unsigned int MAX_MOMENT=4> -class DLLEXPORT_IMG_ALG StatAccumulator +class StatAccumulator { public: StatAccumulator(): @@ -70,14 +70,14 @@ public: sum2_+=val*val; } - StatAccumulator operator+(const StatAccumulator& acc2) const + StatAccumulator<MAX_MOMENT> operator+(const StatAccumulator<MAX_MOMENT>& acc2) const { - StatAccumulator acc(acc2); + StatAccumulator<MAX_MOMENT> acc(acc2); acc+=*this; return acc; } - StatAccumulator& operator+=(const StatAccumulator& acc) + StatAccumulator<MAX_MOMENT>& operator+=(const StatAccumulator<MAX_MOMENT>& acc) { if(acc.n_==1){ return *this; -- GitLab