Boost logo

Boost Users :

Subject: Re: [Boost-users] Issues trying to use boost::unordered_map
From: Joaquín M López Muñoz (joaquinlopezmunoz_at_[hidden])
Date: 2016-09-28 10:01:58


Em 28/09/2016, às 15:33, Daniel James <dnljms_at_[hidden]> escreveu:

> On 28 September 2016 at 13:24, Ram <sourceopen_at_[hidden]> 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


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