Opened 14 years ago
Closed 14 years ago
#1898 closed Bugs (fixed)
Compilation Error in Any Test
Reported by: | Owned by: | nasonov | |
---|---|---|---|
Milestone: | Boost 1.36.0 | Component: | any |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
While compiling any_test.cpp in Microsoft Visual Studio 2005 (Version 8) as a Windows console application, I received the following error:
c:\boost svn\trunk\libs\any\test.hpp(281) : error C2872: 'exception' : ambiguous symbol
could be 'c:\program files\microsoft visual studio 8\vc\include\exception(95) : std::exception'
or 'c:\boost svn\trunk\boost\exception\exception.hpp(47) : boost::exception'
I changed line 281 from
catch(const exception & caught)
to
catch(const std::exception & caught)
The compilation and linking was successful. If std:: is correct, that part should be added to any_test.cpp.
Note:
See TracTickets
for help on using tickets.
(In [45200]) Fixes #1898 Compilation Error in Any Test