Boost logo

Boost :

Subject: Re: [boost] [compute] Remove boost::chrono lib dependencie
From: Kyle Lutz (kyle.r.lutz_at_[hidden])
Date: 2016-12-01 00:32:10


On Wed, Nov 30, 2016 at 1:01 AM, Viktor Sehr <viktor.sehr_at_[hidden]> wrote:
> Hi,
>
> Would it be possible to remove the dependency for boost/chrono is
> boost/compute/detail/duration.hpp.
>
> As it already supports std::chrono via a macro, couldn't the inclusion of
> boost/chrono.hpp be excluded?
> As it is now, boost compute is dependent on having
> libboost_chrono-vc140-mt-gd-1_62.lib built.

Hi Viktor,

You can remove the dependency on the Boost.Chrono compiled library by
defining "BOOST_CHRONO_HEADER_ONLY" before including any Boost
headers. See [1] for more details.

-kyle

[1] http://www.boost.org/doc/libs/1_62_0/doc/html/chrono/reference.html#chrono.reference.cpp0x.chrono_chrono_hpp.conf.header_only


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk