diff --git a/Code/Mantid/Kernel/inc/MantidKernel/TimeSeriesProperty.h b/Code/Mantid/Kernel/inc/MantidKernel/TimeSeriesProperty.h index 59e543d1f94942784badc8999e3374d82ada1078..b6b0b706a16ffa6d240061c3de1d6a75402f5606 100644 --- a/Code/Mantid/Kernel/inc/MantidKernel/TimeSeriesProperty.h +++ b/Code/Mantid/Kernel/inc/MantidKernel/TimeSeriesProperty.h @@ -897,8 +897,14 @@ public: ///Not used in this class and always returns false bool isDefault() const { return false; } - TimeSeriesPropertyStatistics getStatistics(); - + /** + * Return a TimeSeriesPropertyStatistics struct containing the + * statistics of this TimeSeriesProperty object. + */ + TimeSeriesPropertyStatistics getStatistics() + { + throw Exception::NotImplementedError("Cannot calculate statistics for this type"); + } }; diff --git a/Code/Mantid/Kernel/src/TimeSeriesProperty.cpp b/Code/Mantid/Kernel/src/TimeSeriesProperty.cpp index 304f75fe50c2450aec0fbba10c626465c6752467..646ecf53e1aff70f47f0c3c3f8053bad213c5b60 100644 --- a/Code/Mantid/Kernel/src/TimeSeriesProperty.cpp +++ b/Code/Mantid/Kernel/src/TimeSeriesProperty.cpp @@ -17,20 +17,6 @@ namespace Kernel /// @cond -template DLLExport class TimeSeriesProperty<double>; -template DLLExport class TimeSeriesProperty<std::string>; - -template<typename TYPE> -TimeSeriesPropertyStatistics TimeSeriesProperty<TYPE>::getStatistics() -{ - throw Exception::NotImplementedError("Cannot calculate statistics for this type"); -} - -//================================================================================================ -/** Return a TimeSeriesPropertyStatistics struct containing the - * statistics of this TimeSeriesProperty object. - * @param tsp TimeSeriesProperty<double> pointer to calculate. - */ template<> TimeSeriesPropertyStatistics TimeSeriesProperty<double>::getStatistics() { @@ -82,6 +68,9 @@ TimeSeriesPropertyStatistics TimeSeriesProperty<double>::getStatistics() } +template DLLExport class TimeSeriesProperty<double>; +template DLLExport class TimeSeriesProperty<std::string>; + /// @endcond } // namespace Kernel