Em 28/09/2016, às 15:33, Daniel James
On 28 September 2016 at 13:24, Ram
wrote: This is the compilation error I get,
x_objs.cpp c:\codeworks\common\lib\boost\boost\unordered\detail\buckets.hpp(767) : error C2059: syntax error : '('
It's a bit hard to know without context, but this appears to be the same issue you're having with multi_index in another thread. It looks like that syntax error is for the code:
template<typename Type> void construct(void* p,const Type& t) { new (p) Type(t); }
Here, you're getting an error for:
void construct(bool which, H const& hf, P const& eq) { new((void*) &funcs_[which]) function_pair(hf, eq); }
More complicated, but both are using placement new, so I guess that something in your environment is incompatible with placement new.
Along that line, Ram, could you please verify if your project uses DEBUG_NEW somewhere? Don't forget to check for macro definitions on the project's properties window. Joaquín M López Muñoz