Boost logo

Boost :

Subject: Re: [boost] [config] gcc and <unordered_set> vs <ext/hash_set>
From: Giovanni Piero Deretta (gpderetta_at_[hidden])
Date: 2008-12-17 05:21:34


On Tue, Dec 16, 2008 at 9:48 PM, David Abrahams <dave_at_[hidden]> wrote:
>
> on Tue Dec 16 2008, Juergen Hunold <juergen.hunold-AT-ivembh.de> wrote:
>
>> Hi John !
>>
>> On Tuesday 16 December 2008, John Maddock wrote:
>>> Folks, Dave A. asked for a config macro to detect the presence of std
>>> conforming <unordered_set> and <unordered_map>.
>>
>> This would be great.
>>
>>> However, I've run into an unexpected issue: it appears that with
>>> gcc-4.3.x you cannot include both <unordered_set> and <ext/hash_set>
>>> as attempting to do so leads to endless errors inside the <ext/*>
>>> headers :-(
>>>
>>> Including either one of the headers is just fine though.
>>
>> But the <unordered_*> headers are only available with -std=c++0x.
>
> Huh, good point. Too bad you have to set a compiler flag for that one.
>

I think that they are also available with stdc++ TR1 implementation,
which IIRC doesn't require to be enabled via compiler flags.

HTH,

-- 
gpd

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk