mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-13 21:40:11 +00:00
remove inline and use enable_if_t
This commit is contained in:
parent
d8d4351962
commit
d8897c4509
@ -61,10 +61,10 @@ namespace NifOsg
|
||||
ValueInterpolator() = default;
|
||||
|
||||
template<class T = MapT>
|
||||
inline ValueInterpolator(typename std::enable_if<
|
||||
ValueInterpolator(typename std::enable_if_t<
|
||||
std::is_same<T, Nif::FloatKeyMap>::value,
|
||||
const Nif::NiFloatInterpolator
|
||||
>::type * interpolator) : mDefaultVal(interpolator->defaultVal)
|
||||
> * interpolator) : mDefaultVal(interpolator->defaultVal)
|
||||
{
|
||||
if (interpolator->data.empty())
|
||||
return;
|
||||
@ -77,10 +77,10 @@ namespace NifOsg
|
||||
};
|
||||
|
||||
template<class T = MapT>
|
||||
inline ValueInterpolator(typename std::enable_if<
|
||||
ValueInterpolator(typename std::enable_if_t<
|
||||
std::is_same<T, Nif::Vector3KeyMap>::value,
|
||||
const Nif::NiPoint3Interpolator
|
||||
>::type * interpolator) : mDefaultVal(interpolator->defaultVal)
|
||||
> * interpolator) : mDefaultVal(interpolator->defaultVal)
|
||||
{
|
||||
if (interpolator->data.empty())
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user