Opened 9 years ago

Last modified 9 years ago

#8835 new Bugs

failed to use boost::asio::steady_timer w/ clang 3.3

Reported by: i.zaufi@… Owned by: chris_kohlhoff
Milestone: To Be Determined Component: asio
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

boost::asio definitely has incorrect detection of <crono> availability for clang 3.3. despite the attached sample code compiled well, any attempt to use boost::asio::steady_timer (w/ defined -DBOOST_ASIO_DISABLE_BOOST_CHRONO (to force it to use std::chrono instead) leads to a bunch of errors...

Attachments (2)

clang_steady_clock_test.cc (185 bytes ) - added by i.zaufi@… 9 years ago.
sample code to use steady_clock from clang 3.3
clang_3.3_boost_steady_timer_test.cc (161 bytes ) - added by i.zaufi@… 9 years ago.
sample code to use boost::asio::steady_timer from clang 3.3

Download all attachments as: .zip

Change History (3)

by i.zaufi@…, 9 years ago

Attachment: clang_steady_clock_test.cc added

sample code to use steady_clock from clang 3.3

by i.zaufi@…, 9 years ago

sample code to use boost::asio::steady_timer from clang 3.3

comment:1 by i.zaufi@…, 9 years ago

Both tests was compiled w/ clang++ -std=c++11 .... According -E -dM options output there is a bunch of macros incorrectly defined: BOOST_NO_CXX11_HDR_XXX, so I suppose boost/config should be fixed somehow (unfortunately I short of time right now to investigate deeper... maybe later)

Note: See TracTickets for help on using tickets.