From 15a1c7b71f276b558f028eabae53456f444cebbc Mon Sep 17 00:00:00 2001 From: Sudarsana Babu Nagineni Date: Mon, 9 Jul 2018 11:18:30 +0300 Subject: Fix compilation errors with libc++ on QNX 7 This patch fixes the compilation errors on QNX 7: 1) QNX 7 compiler (i.e qcc based GCC 5.4.0 with libc++ from LLVM) has a limited c++11 feature support and causing the compilation errors with the inheriting constructors. This fixes the issues by providing the required constructors explicitly. 2) Resolves an ambiguous overload error with optional --- test/api/recycle_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/api/recycle_map.cpp b/test/api/recycle_map.cpp index ca6abac8c1..fc7e5223ec 100644 --- a/test/api/recycle_map.cpp +++ b/test/api/recycle_map.cpp @@ -35,7 +35,7 @@ TEST(API, RecycleMapUpdateImages) { auto loadStyle = [&](auto markerName, auto markerPath) { auto source = std::make_unique("geometry"); - source->setGeoJSON({ Point { 0, 0 } }); + source->setGeoJSON( Geometry{ Point{ 0, 0 } } ); auto layer = std::make_unique("geometry", "geometry"); layer->setIconImage({ markerName }); -- cgit v1.2.1