[core] GCC 4.9 bracket initialization issues
This commit is contained in:
@@ -41,7 +41,7 @@ public:
|
||||
GLContextMode contextMode = GLContextMode::Unique,
|
||||
ConstrainMode constrainMode = ConstrainMode::HeightOnly,
|
||||
ViewportMode viewportMode = ViewportMode::Default,
|
||||
const optional<std::string>& programCacheDir = {});
|
||||
optional<std::string> programCacheDir = optional<std::string>());
|
||||
~Map();
|
||||
|
||||
// Register a callback that will get called (on the render thread) when all resources have
|
||||
|
||||
@@ -8,8 +8,8 @@ namespace style {
|
||||
|
||||
class TransitionOptions {
|
||||
public:
|
||||
optional<Duration> duration = {};
|
||||
optional<Duration> delay = {};
|
||||
optional<Duration> duration;
|
||||
optional<Duration> delay;
|
||||
|
||||
TransitionOptions(optional<Duration> duration_ = optional<Duration>(),
|
||||
optional<Duration> delay_ = optional<Duration>())
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace util {
|
||||
template<typename To, typename From, std::size_t Size,
|
||||
typename = std::enable_if_t<std::is_convertible<From, To>::value>>
|
||||
MBGL_CONSTEXPR std::array<To, Size> convert(const std::array<From, Size>&from) {
|
||||
std::array<To, Size> to {};
|
||||
std::array<To, Size> to {{}};
|
||||
std::copy(std::begin(from), std::end(from), std::begin(to));
|
||||
return to;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user