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: | 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)
Change History (3)
by , 9 years ago
Attachment: | clang_steady_clock_test.cc added |
---|
by , 9 years ago
Attachment: | clang_3.3_boost_steady_timer_test.cc added |
---|
sample code to use boost::asio::steady_timer from clang 3.3
comment:1 by , 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)
sample code to use steady_clock from clang 3.3