use double braces for array initialization as brace elision is implemented/supported differently in GCC and Clang

This commit is contained in:
Dennis Luxen 2014-10-29 10:39:23 -04:00
parent 8700007025
commit a28928e6ca

View File

@ -29,7 +29,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define DOUGLASPEUCKER_H_
#include <stack>
#include <utility>
#include <vector>
#include <array>
@ -41,7 +40,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* Note: points may also be pre-selected*/
struct SegmentInformation;
static const std::array<int, 19> DOUGLAS_PEUCKER_THRESHOLDS = {
static const std::array<int, 19> DOUGLAS_PEUCKER_THRESHOLDS {{
512440, // z0
256720, // z1
122560, // z2
@ -61,7 +61,7 @@ static const std::array<int, 19> DOUGLAS_PEUCKER_THRESHOLDS = {
8, // z16
6, // z17
4 // z18
};
}};
class DouglasPeucker
{