Boost logo

Boost Users :

From: Joaquín Mª López Muñoz (joaquin_at_[hidden])
Date: 2006-09-06 11:23:13


LionAM ha escrito:

> > Hello Alex, you might try using the precompiled headers option and
> > adding #include <boost\ptr_container\ptr_vector.hpp> to the
> > precomp header (usually "stdafx.h" for MFC projects). This usually speeds
>
> Thank you for your answer!
>
> When I insert #include <boost\ptr_container\ptr_vector.hpp> in
> stdafx.h, I get the error message
>
> (...)\vc98\include\utility(21) : fatal error C1001: internal compiler error
>
> which leads to
> template<class _T1, class _T2> struct pair {
> typedef _T1 first_type;
> typedef _T2 second_type;
> pair()
> : first(_T1()), second(_T2()) {}
> >>> pair(const _T1& _V1, const _T2& _V2)
> : first(_V1), second(_V2) {}
> template<class U, class V> pair(const pair<U, V> &p)
> : first(p.first), second(p.second) {}
> _T1 first;
> _T2 second;
> };
>
> With ptr_list.hpp, the same error in file (...)\vc98\include\xstring(133)
> occurs. What can this be?
>

Well, looks like the unstability problems of VC++ 6.0 and PCHs I told
you about in my previous post. You might want to try deleting the *.pch
file in your Debug (or Release) directory and building again. A little
more drastically, erase the entire Debug or Release directory before
rebuilding (can take very long the first time.)

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net