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)
11 lines
495 B
C++
11 lines
495 B
C++
--- src/wxgui/sidebar.cpp.orig 2015-04-30 21:04:15 UTC
|
|
+++ src/wxgui/sidebar.cpp
|
|
@@ -897,7 +897,7 @@ void SideBar::update_func_inf()
|
|
realt a;
|
|
if (func->get_center(&a))
|
|
inf->AppendText(wxT("Center: ")
|
|
- + s2wx(format1<realt, 30>("%.10"REALT_LENGTH_MOD"g", a)));
|
|
+ + s2wx(format1<realt, 30>("%.10" REALT_LENGTH_MOD "g", a)));
|
|
if (func->get_area(&a))
|
|
inf->AppendText(wxT("\nArea: ") + s2wx(S(a)));
|
|
if (func->get_height(&a))
|