Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-10-16 10:11:55

Vincent Finn wrote:
> Hi,
> I have been using boost::shared_ptr for ages without problems but I
> recently added it to an existing project and it won't compile
> I gives the following error
> C:\LIBS\BOOST_1_30_0\boost/detail/shared_count.hpp(116) : error C2039:
> 'type_info' : is not a member of 'std'
> I have compared the project settings to other projects I use it in an
> found nothing wrong
> I am on Win2K and using VC6 Sp5
> RTTI is switched on in the project
> Has anyone seen this?
> Any idea what might be wrong?

That's odd. Your <typeinfo> probably declares type_info in the global
namespace and doesn't say namespace std { using ::type_info; } afterwards.
VC6SP5's <typeinfo> header does have the using directive, though. STLport?
Or something else unusual?

Boost list run by bdawes at, gregod at, cpdaniel at, john at