Boost C++ Libraries: Ticket #1898: Compilation Error in Any Test https://svn.boost.org/trac10/ticket/1898 <p> While compiling <em>any_test.cpp</em> in Microsoft Visual Studio 2005 (Version 8) as a Windows console application, I received the following error: </p> <p> c:\boost svn\trunk\libs\any\test.hpp(281) : error C2872: 'exception' : ambiguous symbol<br /> could be 'c:\program files\microsoft visual studio 8\vc\include\exception(95) : std::exception'<br /> or 'c:\boost svn\trunk\boost\exception\exception.hpp(47) : boost::exception' </p> <p> I changed line 281 from </p> <pre class="wiki">catch(const exception &amp; caught) </pre><p> to </p> <pre class="wiki">catch(const std::exception &amp; caught) </pre><p> The compilation and linking was successful. If <em>std::</em> is correct, that part should be added to any_test.cpp. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1898 Trac 1.4.3 nasonov Wed, 07 May 2008 19:17:10 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1898#comment:1 https://svn.boost.org/trac10/ticket/1898#comment:1 <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/45200" title="Fixes #1898 Compilation Error in Any Test">[45200]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1898" title="#1898: Bugs: Compilation Error in Any Test (closed: fixed)">#1898</a> Compilation Error in Any Test </p> Ticket