From f701fb340fb01e0561ca77559473bc4aa09dc6d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Wed, 22 Oct 2014 04:18:05 -0700 Subject: [PATCH] GCC doesn't like {} initialization --- src/style/function_properties.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/style/function_properties.cpp b/src/style/function_properties.cpp index 346efe65b..69466c1f6 100644 --- a/src/style/function_properties.cpp +++ b/src/style/function_properties.cpp @@ -18,10 +18,10 @@ template T StopsFunction::evaluate(float z) const { bool smaller = false; float smaller_z = 0.0f; - T smaller_val {}; + T smaller_val = T(); bool larger = false; float larger_z = 0.0f; - T larger_val {}; + T larger_val = T(); for (uint32_t i = 0; i < values.size(); i++) { float stop_z = values[i].first;