Fix compile error when using ASIO_NO_DEPRECATED.
This commit is contained in:
parent
63780a33a9
commit
08b1e437a0
@ -577,8 +577,13 @@ private:
|
|||||||
{
|
{
|
||||||
time_point now = traits_helper::now();
|
time_point now = traits_helper::now();
|
||||||
|
|
||||||
|
#if defined(ASIO_HAS_BOOST_DATE_TIME)
|
||||||
time_point expiry_time = this_->timer_service_->expires_at(
|
time_point expiry_time = this_->timer_service_->expires_at(
|
||||||
this_->timer_implementation_);
|
this_->timer_implementation_);
|
||||||
|
#else // defined(ASIO_HAS_BOOST_DATE_TIME)
|
||||||
|
time_point expiry_time = this_->timer_service_->expiry(
|
||||||
|
this_->timer_implementation_);
|
||||||
|
#endif // defined(ASIO_HAS_BOOST_DATE_TIME)
|
||||||
|
|
||||||
if (traits_helper::less_than(now, expiry_time))
|
if (traits_helper::less_than(now, expiry_time))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user