Boost C++ Libraries: Ticket #3105: error C2872: 'time_t' : ambiguous symbol in microsec_time_clock.hpp line 168 : https://svn.boost.org/trac10/ticket/3105 <p> 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) : <span class="underline">time32_t time_t </span></p> <p> The fix is trivial; simply need to qualify the time_t in the static_cast of the cited line. diff attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3105 Trac 1.4.3 Kevin Duffy <duffy151+boost@…> Thu, 28 May 2009 19:49:36 GMT attachment set https://svn.boost.org/trac10/ticket/3105 https://svn.boost.org/trac10/ticket/3105 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">microsec_time_clock.hpp.patch</span> </li> </ul> <p> Patch that adds std:: namespace </p> Ticket Andrey Semashev Thu, 04 Jun 2009 11:34:28 GMT <link>https://svn.boost.org/trac10/ticket/3105#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3105#comment:1</guid> <description> <p> This isn't really a good idea to override standard types in user's code. However, it's pretty easy to fix. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Thu, 04 Jun 2009 11:35:45 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3105#comment:2 https://svn.boost.org/trac10/ticket/3105#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/53627" title="Fixes #3105.">[53627]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3105" title="#3105: Bugs: error C2872: 'time_t' : ambiguous symbol in microsec_time_clock.hpp ... (closed: fixed)">#3105</a>. </p> Ticket Andrey Semashev Thu, 04 Jun 2009 11:36:45 GMT <link>https://svn.boost.org/trac10/ticket/3105#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3105#comment:3</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/53628" title="Fixes #3105.">[53628]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3105" title="#3105: Bugs: error C2872: 'time_t' : ambiguous symbol in microsec_time_clock.hpp ... (closed: fixed)">#3105</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>