src/document.cpp

changeset 244
065db0753f05
parent 232
8efa3a33172e
child 245
a41ccc6924e3
--- a/src/document.cpp	Mon Jun 20 22:40:31 2022 +0300
+++ b/src/document.cpp	Mon Jun 20 22:41:34 2022 +0300
@@ -26,18 +26,15 @@
 #include "circularprimitive.h"
 
 // Make mapbox::earcut work with glm::vec3
-namespace mapbox {
-namespace util {
-template<> struct nth<0, glm::vec3>
+template<> struct mapbox::util::nth<0, glm::vec3>
 {
 	static constexpr float get(const glm::vec3& t) { return t.x; };
 };
-template<> struct nth<1, glm::vec3>
+
+template<> struct mapbox::util::nth<1, glm::vec3>
 {
 	static constexpr float get(const glm::vec3& t) { return t.y; };
 };
-}
-}
 
 EditTools::EditTools(QObject* parent) :
 	QObject{parent},

mercurial