Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/src/basic/MetricValue.hh
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ class MetricValueBase : public utility::VirtualBase {
public:
// note: MetricValueBase must have a virtual function so that it will be polymorphic
// (specifically to allow dynamic casting)
~MetricValueBase() override {};
~MetricValueBase() override = default;
virtual MetricValueBaseOP clone() const = 0;
};


template <class T>
class MetricValue : public MetricValueBase {
public:
MetricValue() {};
MetricValue( MetricValue const & metric_value ) : MetricValueBase(), data_(metric_value.value()) {};
MetricValue() = default;
MetricValue( MetricValue const & ) = default;
MetricValue( T const & inp ) : data_(inp) {};
void set( T const & inp ) { data_ = inp; };
std::string print() const { std::ostringstream ostream; ostream << data_; return ostream.str(); };
Expand Down