[haiku-bugs] Re: [Haiku] #12202: std::to_string fails in GCC 4.8.4

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Thu, 09 Jul 2015 06:26:30 -0000

#12202: std::to_string fails in GCC 4.8.4
-------------------------+----------------------------
Reporter: haiqu | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: - General | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
-------------------------+----------------------------

Comment (by pulkomandy):

You can force enabling of it by using -D_GLIBCXX_USE_C99 in you command
line arguments, if the implementation of std::to_string is inlined in
header files. I did something similar with _GLIBCXX_USE_C99_MATH in the
WebKit port
(https://github.com/haiku/webkit/blob/rebased/Source/cmake/OptionsHaiku.cmake)
so I could use std::isinf and a few other methods from #include <math>.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12202#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: