Commit aa1d5cd0 authored by Jørgen Lind's avatar Jørgen Lind
Browse files

Compilefixes linux

parent ff97e312
......@@ -11,20 +11,20 @@
#include <random>
template<typename T>
static void getRangeForFormat1(float &min, float &max)
inline void getRangeForFormat1(float &min, float &max)
{
min = std::numeric_limits<T>::min();
max = std::numeric_limits<T>::max();
}
template<>
static void getRangeForFormat1<float>(float &min, float &max)
inline void getRangeForFormat1<float>(float &min, float &max)
{
min = -1.f;
max = 1.f;
}
template<>
static void getRangeForFormat1<double>(float &min, float &max)
inline void getRangeForFormat1<double>(float &min, float &max)
{
min = -1.f;
max = 1.f;
......
......@@ -19,6 +19,7 @@
#define VOLUMEDATA_H
#include <cstdint>
#include <cstddef>
namespace OpenVDS
{
......
......@@ -11,20 +11,20 @@
#include <random>
template<typename T>
static void getRangeForFormat1(float &min, float &max)
inline void getRangeForFormat1(float &min, float &max)
{
min = std::numeric_limits<T>::min();
max = std::numeric_limits<T>::max();
}
template<>
static void getRangeForFormat1<float>(float &min, float &max)
inline void getRangeForFormat1<float>(float &min, float &max)
{
min = -1.f;
max = 1.f;
}
template<>
static void getRangeForFormat1<double>(float &min, float &max)
inline void getRangeForFormat1<double>(float &min, float &max)
{
min = -1.f;
max = 1.f;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment