diff --git a/noise/lerp.cpp b/noise/lerp.cpp index 2b81f12f..d549b54a 100644 --- a/noise/lerp.cpp +++ b/noise/lerp.cpp @@ -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 T -truncate::operator() (T a, T, T weight) noexcept +util::lerp::truncate::operator() (T a, T, T weight) noexcept { static_assert (std::is_floating_point::value, "lerp is only defined for floating types");