summaryrefslogtreecommitdiff
path: root/include/mbgl/style
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style')
-rw-r--r--include/mbgl/style/layer.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mbgl/style/layer.hpp b/include/mbgl/style/layer.hpp
index 02153ad092..c6a3c0e735 100644
--- a/include/mbgl/style/layer.hpp
+++ b/include/mbgl/style/layer.hpp
@@ -6,8 +6,10 @@
#include <mbgl/style/layer_type.hpp>
#include <mbgl/style/types.hpp>
+#include <cassert>
#include <memory>
#include <string>
+#include <stdexcept>
namespace mbgl {
namespace style {
@@ -89,6 +91,11 @@ public:
case LayerType::FillExtrusion:
return std::forward<V>(visitor)(*as<FillExtrusionLayer>());
}
+
+
+ // Not reachable, but placate GCC.
+ assert(false);
+ throw new std::runtime_error("unknown layer type");
}
LayerType getType() const;