From 772b9090626731101b82eccacbc3adaa71cc428c Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Wed, 29 Nov 2017 15:16:14 +0200 Subject: [build] Clang-3.8: Explicit mbgl::PlacedGlyph default+copy+move ctor --- src/mbgl/layout/symbol_projection.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/mbgl/layout/symbol_projection.hpp b/src/mbgl/layout/symbol_projection.hpp index 8535014f22..3e57d162fd 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; -- cgit v1.2.1