[Mesa-dev] [PATCH v2 12/15] nv50/ir: optimize the use of std::tr1::unordered_set

Chih-Wei Huang cwhuang at android-x86.org
Fri Jun 19 09:51:36 PDT 2015

2015-05-21 0:10 GMT+08:00 Ilia Mirkin <imirkin at alum.mit.edu>:
>> If this is required for compatibility reasons with old Android systems I
>> suggest you wrap it under a preprocessor conditional like:
>> #if __cplusplus >= 201103L
>> using std::unordered_set;
>> #elif building-on-old-android-version-with-broken-stlport
>> using my-funky-wrapper-for-std-unordered-set;
>> #else
>> using std::tr1::unordered_set;
>> #endif
> Chih-Wei, I think this is the right way to go as well. Could you
> rework your nv50/ir patches into one that does it this way? Sounds
> like the "#elif funky-wrapper" bit isn't actually needed anymore
> either, as you're going with a C++11-only approach?

Sorry for not update in time.
I'm too busy recently.

Just sent the updated patch as Ilia's suggestion.
Thank you for all the comments.

Android-x86 project

More information about the mesa-dev mailing list