Jump to content


stl and boost


3 replies to this topic

#1 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 03 May 2003 - 01:18 PM

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 ???
If Prolog is the answer, what is the question ?

#2 anubis

    Senior Member

  • Members
  • PipPipPipPip
  • 2225 posts

Posted 03 May 2003 - 02:04 PM

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.
If Prolog is the answer, what is the question ?

#3 Dia

    DevMaster Staff

  • Administrators
  • 1097 posts

Posted 03 May 2003 - 06:31 PM

nice one :)

#4 baldurk

    Senior Member

  • Members
  • PipPipPipPip
  • 1057 posts

Posted 03 May 2003 - 06:39 PM

to me, that code is really fugly.
baldurk
He who knows not and knows that he knows not is ignorant. Teach him.
He who knows not and knows not that he knows not is a fool. Shun him.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users