[mythtv-commits] Ticket #10524: g++ C++ standards compliance patch

MythTV noreply at mythtv.org
Thu Jul 5 08:55:34 UTC 2012


#10524: g++ C++ standards compliance patch
-------------------------------------+-------------------------------------
 Reporter:  Gary Buhrmaster          |          Owner:  Gary Buhrmaster
  <gary.buhrmaster@…>                |  <gary.buhrmaster@…>
     Type:  Patch - Feature          |         Status:  closed
 Priority:  minor                    |      Milestone:  unknown
Component:  MythTV - Video Playback  |        Version:  Unspecified
 Severity:  low                      |     Resolution:  fixed
 Keywords:                           |  Ticket locked:  0
-------------------------------------+-------------------------------------
Changes (by Gary Buhrmaster <gary.buhrmaster@…>):

 * owner:   => Gary Buhrmaster <gary.buhrmaster@…>
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:e4f3d088815b7f08650eec915da97acacf565d21/mythtv]:
 {{{
 #!CommitTicketReference repository="mythtv"
 revision="e4f3d088815b7f08650eec915da97acacf565d21"
 use qIsNaN in place of ::isnan

 Feature patch for g++ C++0x/C++11 standards compliance

 When compiling with g++ and specifing -std=c++0x the compilation fails in
 mythplayer.cpp due to a namespace collision for isnan (std:: and math::).

 Patch attached which changes mythplayer to use the Qt function qIsNaN,
 providing a platform neutral implementation now that Qt has made that
 function available (in Qt 4.6).

 Since MythTV does not currently specify use of the new C++ standards, this
 patch is not necessary at this time, but may useful be at some future date
 (when gcc defaults to the C++11 standards?)

 Fixes #10524

 Signed-off-by: Gavin Hurlbut <ghurlbut at mythtv.org>
 }}}

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10524#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list