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

2015-05-18 Thread Chih-Wei Huang
2015-05-18 1:46 GMT+08:00 Chih-Wei Huang : > 2015-05-16 2:46 GMT+08:00 Ilia Mirkin : >> Please elaborate why this is necessary. I have, in the past, had >> requests to move to the C++11 std::unordered_set -- would that work >> for you? I'd be happy with a #if c++11 is available, use >> std::unorder

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

2015-05-17 Thread Chih-Wei Huang
2015-05-16 2:46 GMT+08:00 Ilia Mirkin : > Please elaborate why this is necessary. I have, in the past, had > requests to move to the C++11 std::unordered_set -- would that work > for you? I'd be happy with a #if c++11 is available, use > std::unordered_set. Otherwise use std::tr1::unordered_set. H

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

2015-05-15 Thread Ilia Mirkin
Please elaborate why this is necessary. I have, in the past, had requests to move to the C++11 std::unordered_set -- would that work for you? I'd be happy with a #if c++11 is available, use std::unordered_set. Otherwise use std::tr1::unordered_set. On Fri, May 15, 2015 at 2:42 PM, Chih-Wei Huang

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

2015-05-15 Thread Chih-Wei Huang
Instead of using unordered_set directly, the patch changes to use unordered_set and adds a wrapper template class to convert the iterators to the expected user-defined type. This avoid instantiating the template multiple times and make it be more compatible with stlport. Signed-off-by: Chih-Wei H