[Bug 1277404] [NEW] boost header custom_time_zone.hpp triggers compile error
Rudolf Leitgeb
1277404 at bugs.launchpad.net
Fri Feb 7 08:59:32 UTC 2014
Public bug reported:
The file /usr/include/boost/date_time/local_time/custom_time_zone.hpp
shipped with that package contains the statement
return (dst_calc_rules_); //if calc_rule is set the tz has dst
in line 67. This line will not compile with the gcc shipped with Ubuntu
Saucy Salamander. An informative discussion on this topic can be found
here on stackoverflow:
http://stackoverflow.com/questions/15234527/boost-1-53-local-date-time-
compiler-error-with-std-c0x
The fix suggested in this page does indeed work.
I would therefore suggest that Ubuntu replace that line with the correct
statement:
return bool(dst_calc_rules_); //if calc_rule is set the tz has dst
This change imposes no measurable performance or other penalty and
simply makes explicit what the compiler refuses to do implicitly.
** Affects: boost1.53 (Ubuntu)
Importance: Undecided
Status: New
** Tags: saucy
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to boost1.53 in Ubuntu.
https://bugs.launchpad.net/bugs/1277404
Title:
boost header custom_time_zone.hpp triggers compile error
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/boost1.53/+bug/1277404/+subscriptions
More information about the Ubuntu-server-bugs
mailing list