remove inline and use enable_if_t

pull/593/head
Evil Eye 4 years ago
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…
Cancel
Save