diff --git a/src/mbgl/layout/symbol_projection.hpp b/src/mbgl/layout/symbol_projection.hpp index 8535014f2..3e57d162f 100644 --- a/src/mbgl/layout/symbol_projection.hpp +++ b/src/mbgl/layout/symbol_projection.hpp @@ -23,9 +23,17 @@ namespace mbgl { }; struct PlacedGlyph { + PlacedGlyph() = default; + PlacedGlyph(Point point_, float angle_, optional tileDistance_) : point(point_), angle(angle_), tileDistance(std::move(tileDistance_)) {} + PlacedGlyph(PlacedGlyph&& other) noexcept + : point(std::move(other.point)), angle(other.angle), tileDistance(std::move(other.tileDistance)) + {} + PlacedGlyph(const PlacedGlyph& other) + : point(std::move(other.point)), angle(other.angle), tileDistance(std::move(other.tileDistance)) + {} Point point; float angle; optional tileDistance;