freebsd-ports/math/fityk/files/patch-src__wxgui__sidebar.cpp
Jan Beich 792c4ddf5a math/fityk: unbreak build on 8.x/9.x (gcc 4.8)
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)
2015-04-30 21:48:16 +00:00

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))