matrix: inline to prevent multiple definitions (#147)

Without inline we get multiple definitions during linking.
This commit is contained in:
Julian Oes
2020-08-25 12:58:04 +02:00
committed by GitHub
parent e101edc0e7
commit 3a5bfb2bd1
+2 -2
View File
@@ -65,7 +65,7 @@ Floating wrap_floating(Floating x, Floating low, Floating high) {
* @param high upper limit of the allowed range
* @return wrapped value inside the range
*/
float wrap(float x, float low, float high) {
inline float wrap(float x, float low, float high) {
return matrix::detail::wrap_floating(x, low, high);
}
@@ -77,7 +77,7 @@ float wrap(float x, float low, float high) {
* @param high upper limit of the allowed range
* @return wrapped value inside the range
*/
double wrap(double x, double low, double high) {
inline double wrap(double x, double low, double high) {
return matrix::detail::wrap_floating(x, low, high);
}