Utils: Fix possible name clash between std::clamp and ZM::clamp
The naming was ambiguous when compinling in C++17 mode.
This commit is contained in:
parent
e18f9676cd
commit
a335e740f3
|
@ -96,7 +96,7 @@ constexpr const T &clamp(const T &v, const T &lo, const T &hi, Compare comp) {
|
|||
|
||||
template<class T>
|
||||
constexpr const T &clamp(const T &v, const T &lo, const T &hi) {
|
||||
return clamp(v, lo, hi, std::less<T>{});
|
||||
return ZM::clamp(v, lo, hi, std::less<T>{});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue