stl and boost

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 May 03, 2003 at 13:18

i remember having used boost and stlport together a million times before on both vs.net and gcc and suddenly i get this error when i try to use a
boost::shared pointer with the std::vector :

c:\Programme\Microsoft Visual Studio .NET\Vc7\include\boost\detail\shared_count.hpp(265) : error C2039: ‘type_info’ : is not a member of ‘_STL’

it relates to this chunk of code in shared_count.hpp(boost) :

virtual void * get_deleter(std::type_info const & ti) = 0;

and this one in shared_ptr.hpp(boost)

void * _internal_get_deleter(std::type_info const & ti) const
{
    return pn.get_deleter(ti);
}

any ideas ???

3 Replies

Please log in or register to post a reply.

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 May 03, 2003 at 14:04

solved it…
strange that this error never occured before.
the problem was that stlport redefines std to _STL but imports type_info from the vendor stl which somehow confused boost because it was looking for type_info in _STL and not in std.
anyway i configured stlport not to redefine it’s namespace and now it works.

Fdbdc4176840d77fe6a8deca457595ab
0
dk 158 May 03, 2003 at 18:31

nice one :)

0684f9d33f52fa189aad7ac9e8c87510
0
baldurk 101 May 03, 2003 at 18:39

to me, that code is really fugly.