summaryrefslogtreecommitdiff
path: root/include/mbgl/style/layer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/layer.hpp')
-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 56f2c48fa7..016b3a1c8b 100644
--- a/include/mbgl/style/layer.hpp
+++ b/include/mbgl/style/layer.hpp
@@ -5,8 +5,10 @@
#include <mbgl/style/layer_type.hpp>
#include <mbgl/style/types.hpp>
+#include <cassert>
#include <memory>
#include <string>
+#include <stdexcept>
namespace mbgl {
namespace style {
@@ -96,6 +98,11 @@ public:
case LayerType::FillExtrusion:
return visitor(*as<FillExtrusionLayer>());
}
+
+
+ // Not reachable, but placate GCC.
+ assert(false);
+ throw new std::runtime_error("unknown layer type");
}
const std::string& getID() const;