Hi Gavin,

[
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.)
]
Will try this after I try the other suggestion in the other thread of seeing the pre-processor output and trying to figure out if something is messed up there. I want to try this later since I am working on a huge project and this file is huge by itself and has over 15 or more includes. 

Thanks,
Ram




On Thu, Sep 29, 2016 at 5:52 AM, Gavin Lambert <gavinl@compacsort.com> wrote:
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 mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users