Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6960: unnecessary dependency on boost.date_time when building with separate compilation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-03 09:59:22
#6960: unnecessary dependency on boost.date_time when building with separate
compilation
-------------------------------+--------------------------------------------
Reporter: arvid@⦠| Owner: chris_kohlhoff
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: asio
Version: Boost 1.46.0 | Severity: Problem
Resolution: wontfix | Keywords:
-------------------------------+--------------------------------------------
Changes (by chris_kohlhoff):
* status: new => closed
* resolution: => wontfix
Comment:
Is that a regression in boost.date_time? I believe it used to work without
needing a library for these uses.
The rationale for the timer_queue<ptime> specialisation is to minimise
code duplication across object files / shared libraries. Removing it and
relying on automatic template instantiation defeats that.
However you can consider asio/impl/src.hpp as simply representing the
default case for separate compilation. You can roll your own file that
includes a minimal set of .ipp files as needed to resolve link
dependencies. In more recent boost versions this would allow you to leave
out timer_queue_ptime.ipp altogether.
Note that a future version of asio will allow boost.date_time use to be
disabled completely.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6960#comment:1> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC