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

Fix missing static for function

parent 3fec42d9
......@@ -11,25 +11,26 @@
#include <random>
template<typename T>
void getRangeForFormat1(float &min, float &max)
static void getRangeForFormat1(float &min, float &max)
{
min = std::numeric_limits<T>::min();
max = std::numeric_limits<T>::max();
}
template<>
void getRangeForFormat1<float>(float &min, float &max)
static void getRangeForFormat1<float>(float &min, float &max)
{
min = -1.f;
max = 1.f;
}
template<>
void getRangeForFormat1<double>(float &min, float &max)
static void getRangeForFormat1<double>(float &min, float &max)
{
min = -1.f;
max = 1.f;
}
void getRangeForFormat(OpenVDS::VolumeDataChannelDescriptor::Format format, float &min, float &max)
static void getRangeForFormat(OpenVDS::VolumeDataChannelDescriptor::Format format, float &min, float &max)
{
switch (format)
{
......
......@@ -11,25 +11,26 @@
#include <random>
template<typename T>
void getRangeForFormat1(float &min, float &max)
static void getRangeForFormat1(float &min, float &max)
{
min = std::numeric_limits<T>::min();
max = std::numeric_limits<T>::max();
}
template<>
void getRangeForFormat1<float>(float &min, float &max)
static void getRangeForFormat1<float>(float &min, float &max)
{
min = -1.f;
max = 1.f;
}
template<>
void getRangeForFormat1<double>(float &min, float &max)
static void getRangeForFormat1<double>(float &min, float &max)
{
min = -1.f;
max = 1.f;
}
void getRangeForFormat(OpenVDS::VolumeDataChannelDescriptor::Format format, float &min, float &max)
static void getRangeForFormat(OpenVDS::VolumeDataChannelDescriptor::Format format, float &min, float &max)
{
switch (format)
{
......
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