n/lerp: fully qualify truncate functor

lerp::truncate potentially conflicts with ::truncate from POSIX
This commit is contained in:
Danny Robson 2016-02-03 12:01:59 +11:00
parent 40b6cfe558
commit b37ce1c165

View File

@ -25,13 +25,12 @@ using util::lerp::linear;
using util::lerp::cosine;
using util::lerp::cubic;
using util::lerp::quintic;
using util::lerp::truncate;
//-----------------------------------------------------------------------------
template <typename T>
T
truncate<T>::operator() (T a, T, T weight) noexcept
util::lerp::truncate<T>::operator() (T a, T, T weight) noexcept
{
static_assert (std::is_floating_point<T>::value,
"lerp is only defined for floating types");