[haiku-bugs] Re: [Haiku] #13220: [Interface Kit] AffineTransform.h doesn't compile with -pendantic

  • From: "axeld" <trac@xxxxxxxxxxxx>
  • Date: Tue, 17 Jan 2017 22:49:15 -0000

#13220: [Interface Kit] AffineTransform.h doesn't compile with -pendantic
----------------------------------+----------------------------
   Reporter:  diver               |      Owner:  axeld
       Type:  bug                 |     Status:  new
   Priority:  normal              |  Milestone:  Unscheduled
  Component:  Kits/Interface Kit  |    Version:  R1/Development
 Resolution:                      |   Keywords:
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------

Comment (by axeld):

 There is no way to make this code compile with `-pedantic` without using
 C++11. I'd suggest replacing `BAffineTransform::kDefaultEpsilon` with a
 `#define B_DEFAULT_EPSILON`. Anyone against this solution? Should the
 define only be used locally in that file, or should it be usable for
 others, too?

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

Other related posts: