fixed silly compiler issues under linux and gcc

This commit is contained in:
toni
2019-09-18 10:47:48 +02:00
parent 22c2bc95c9
commit 51117d7559
5 changed files with 15 additions and 15 deletions

View File

@@ -136,14 +136,14 @@ namespace Plotta
}
template<>
static plottastream& operator<<(plottastream& stream, const float& value)
inline plottastream& operator<<(plottastream& stream, const float& value)
{
return stream << (isnan(value) ? "float(\"nan\")" : std::to_string(value));
}
template<>
static plottastream& operator<<(plottastream& stream, const Point2& value)
inline plottastream& operator<<(plottastream& stream, const Point2& value)
{
return stream << std::initializer_list<float>{ value.x, value.y };
}
}
}