Subject: [Boost-bugs] [Boost C++ Libraries] #3105: error C2872: 'time_t' : ambiguous symbol in microsec_time_clock.hpp line 168 :
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-05-28 19:48:53
#3105: error C2872: 'time_t' : ambiguous symbol in microsec_time_clock.hpp line
168 :
----------------------------------------------------+-----------------------
Reporter: Kevin Duffy <duffy151+boost_at_[hidden]> | Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: Boost 1.40.0 | Component: date_time
Version: Boost 1.37.0 | Severity: Problem
Keywords: |
----------------------------------------------------+-----------------------
Using MS Visual Studio 2008,
If I have a time_t type defined, this error will occur as the compile
can't resolve if the time_t is my type or the one from the one in
\microsoft visual studio 9.0\vc\include\crtdefs.h(580) : __time32_t time_t
The fix is trivial; simply need to qualify the time_t in the static_cast
of the cited line. diff attached.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3105> 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:00 UTC