Boost logo

Boost Users :

Subject: Re: [Boost-users] [Boost.Intrusive] Compilation error with Visual Studio 2008
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-13 15:25:13


AMDG

info-tibo wrote:
> For a project, I created a class allowing to reference some objects, and I
> use Boost.Intrusive.
> I started coding this class using Code::Blocks and gcc 3.4.5 . But now I
> want to use Visual Studio 9, and I simply added the class to the project.
> And then... it doesn't compile...
>
> The code is here :
> -----------------------------------------------------------------------------------------------------------------------------------------
> <snip>
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> VCC told me 42 errors, all related to the first one:
> line 112 : C2327: 'base::EqualRefSystem::ERSMemberHook' : is not a type
> name, static, or enumerator
>

I think that MSVC is wrong here by 3.3.6. You can work around
this by using a base hook instead of a member hook.

In Christ,
Steven Watanabe


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