Skip to content
Snippets Groups Projects
Commit faf4d835 authored by Jonas Greitemann's avatar Jonas Greitemann
Browse files

Fix bug: avoid multiple definition linker error

parent 446d4397
No related branches found
No related tags found
No related merge requests found
......@@ -47,22 +47,16 @@ namespace classifier {
virtual std::string name(label_type const& l) const override {
if (size_t(l) >= 2)
return classifier::policy<point_type>::name(l);
return names[size_t(l)];
return size_t(l) ? "ORDERED" : "DISORDERED";
}
virtual size_t size() const override {
return 2;
}
private:
static constexpr const char * names[] = {
"DISORDERED",
"ORDERED",
};
double temp_crit;
};
constexpr const char * critical_temperature::names[]; // [depr.static_constexpr]
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment