summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-12-22 12:34:38 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-12-22 18:14:00 -0800
commit083cee8956e6aa89eefe93df6e5c286a1b6728b8 (patch)
treedf3283ecadaf6c82b822f69c9c213a96b91febb2 /src
parent317b2bf42fc16b629abcd0a984d4acc14070904f (diff)
downloadqtlocation-mapboxgl-083cee8956e6aa89eefe93df6e5c286a1b6728b8.tar.gz
[core] Correct boolean function interpolation
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/util/interpolate.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/util/interpolate.hpp b/src/mbgl/util/interpolate.hpp
index 958b185d5b..ef066377da 100644
--- a/src/mbgl/util/interpolate.hpp
+++ b/src/mbgl/util/interpolate.hpp
@@ -62,6 +62,10 @@ struct Uninterpolated {
}
};
+template <>
+struct Interpolator<bool>
+ : Uninterpolated {};
+
template <class T>
struct Interpolator<T, typename std::enable_if_t<std::is_enum<T>::value>>
: Uninterpolated {};