diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-12-03 07:11:02 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-12-03 07:11:02 +0100 |
commit | 7af59eda13eb8dcbb14e6db71266772f5ea663e9 (patch) | |
tree | 9ec2aa93b59475c42c7e306ac8e438fff27669f2 /compat/util.hpp | |
parent | 388be5f883425419ed2e8362ed425a86839aa162 (diff) |
compat: avoid namespace clashes
Diffstat (limited to 'compat/util.hpp')
-rw-r--r-- | compat/util.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/util.hpp b/compat/util.hpp index 7a6858a3..a63e245f 100644 --- a/compat/util.hpp +++ b/compat/util.hpp @@ -22,7 +22,7 @@ int iround(const t& val) return int(std::round(val)); } -namespace detail { +namespace util_detail { template<typename n> inline auto clamp_(n val, n min, n max) -> n @@ -39,5 +39,5 @@ inline auto clamp_(n val, n min, n max) -> n template<typename t, typename u, typename w> inline auto clamp(const t& val, const u& min, const w& max) -> decltype(val * min * max) { - return ::detail::clamp_<decltype(val * min * max)>(val, min, max); + return ::util_detail::clamp_<decltype(val * min * max)>(val, min, max); } |