[Bug 1754326] Re: Boost datetime 1.65.1 (Bionic) has compilation errors
Hans Joachim Desserud
1754326 at bugs.launchpad.net
Fri Mar 9 18:40:34 UTC 2018
** Tags added: bionic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to boost1.65.1 in Ubuntu.
https://bugs.launchpad.net/bugs/1754326
Title:
Boost datetime 1.65.1 (Bionic) has compilation errors
Status in boost1.65.1 package in Ubuntu:
New
Bug description:
----
g++ command:
---
g++ -o linux/local/target/main/objs/x.o -c -g -std=c++1y -O0
-fpermissive -Iinclude -Ilinux/local/target/include -Iproto src/x.cxx
---
result:
---
In file included from /usr/include/boost/date_time/gregorian_calendar.hpp:64:0,
from /usr/include/boost/date_time/gregorian/greg_calendar.hpp:16,
from /usr/include/boost/date_time/gregorian/gregorian_types.hpp:19,
from /usr/include/boost/date_time/posix_time/posix_time_config.hpp:18,
from /usr/include/boost/date_time/posix_time/posix_time_system.hpp:13,
from /usr/include/boost/date_time/posix_time/ptime.hpp:12,
from /usr/include/boost/date_time/posix_time/posix_time_types.hpp:12,
from /usr/include/boost/asio/time_traits.hpp:23,
from /usr/include/boost/asio/deadline_timer_service.hpp:27,
from /usr/include/boost/asio/basic_deadline_timer.hpp:25,
from /usr/include/boost/asio.hpp:22,
/usr/include/boost/date_time/gregorian_calendar.ipp:81:32: error: ambiguous overload for 'operator+' (operand types are 'const boost::gregorian::greg_day' and 'int')
unsigned long d = ymd.day + ((153*m + 2)/5) + 365*y + (y/4) - (y/100) + (y/400) - 32045;
~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/boost/date_time/gregorian_calendar.ipp:81:32: note: candidate: operator+(int, int) <built-in>
---
another result:
---
/usr/include/boost/date_time/gregorian_calendar.ipp:79:61: error: ambiguous overload for 'operator+' (operand types are 'const boost::gregorian::greg_year' and 'int')
unsigned short y = static_cast<unsigned short>(ymd.year + 4800 - a);
------
There are also errors in /usr/include/boost/date_time/adjust_functors.hpp.
I would assume this has been fixed in a later Boost release, but I'm not sure.
Package: libboost1.65-dev
Version: 1.65.1+dfsg-0ubuntu5
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/boost1.65.1/+bug/1754326/+subscriptions
More information about the foundations-bugs
mailing list