Public bug reported: ---- 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 ** Affects: ubuntu Importance: Undecided Status: New ** Summary changed: - Boost datetime 1.65.1 (Bionic) have compilation errors + Boost datetime 1.65.1 (Bionic) has compilation errors -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1754326 Title: Boost datetime 1.65.1 (Bionic) has compilation errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/1754326/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs