Boost logo

Boost Users :

Subject: Re: [Boost-users] Insertion/Use of boost::multi_index - new thread
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2016-09-28 20:22:06


On 29/09/2016 01:23, Ram wrote:
>> 2. If the answer to the above is affirmative, please start removing
>> headers (and the
>> code that depends on them), *one header at a time*. Continue after
>> you've removed
>> everything (a) or suddenly the error disappears (b).
>
> The error disappears only when I remove the multi_index declaration.
> After which the thing is of no use to me.

Previously you have said that using it standalone in a separate project
works correctly. This means that the problem is either with the project
settings or with other things you have #included.

If you have really tried removing *every other* #include (including
stdafx.h and any other project-specific includes) so that it still fails
when you include nothing but the Boost and CRT headers, then that
suggests the problem is your project settings.

(More likely, though, you forgot that stdafx.h was one of the headers
you should have tried removing. So try that. You will have to disable
precompiled headers when you do that.)


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