forked from Lainports/freebsd-ports
Add -std=c++11 to fix
/usr/local/include/wx-3.0/wx/strvararg.h:25:27: error: type_traits: No such file or directory
which itself exposes
guess.cpp:20:7: error: unknown type name 'array'
const array<string, 3> Guess::linear_traits =
^
sidebar.cpp:900:52: error: invalid suffix on literal; C++11 requires a space between
literal and identifier [-Wreserved-user-defined-literal]
+ s2wx(format1<realt, 30>("%.10"REALT_LENGTH_MOD"g", a)));
^
Reported by: pkg-fallout
Approved by: portmgr blanket
MFH: 2015Q2 (only USES due to lack of r383466)
12 lines
354 B
C++
12 lines
354 B
C++
--- src/guess.cpp.orig 2011-06-04 00:10:02 UTC
|
|
+++ src/guess.cpp
|
|
@@ -15,7 +15,8 @@
|
|
#include "settings.h"
|
|
|
|
using namespace std;
|
|
-using boost::array;
|
|
+// Macro to avoid ambiguity with std::array (C++11)
|
|
+#define array boost::array
|
|
|
|
const array<string, 3> Guess::linear_traits =
|
|
{{ "slope", "intercept", "avgy" }};
|