Re: [patch] Simplify std::tuple helpers and fix C++14 bug.

2014-06-13 Thread Jonathan Wakely
On 15/05/14 11:38 +0100, Jonathan Wakely wrote: On 15/05/14 07:36 +0200, Daniel Krügler wrote: Looking at the definition of the new alias __cv_tuple_size you might want to apply LWG 2313 http://cplusplus.github.io/LWG/lwg-defects.html#2313 and simplify its definition even further. I forgot

Re: [patch] Simplify std::tuple helpers and fix C++14 bug.

2014-05-15 Thread Jonathan Wakely
On 15/05/14 07:36 +0200, Daniel Krügler wrote: Looking at the definition of the new alias __cv_tuple_size you might want to apply LWG 2313 http://cplusplus.github.io/LWG/lwg-defects.html#2313 and simplify its definition even further. I forgot about that. With that resolution the __cv_tuple_

Re: [patch] Simplify std::tuple helpers and fix C++14 bug.

2014-05-14 Thread Daniel Krügler
2014-05-15 0:22 GMT+02:00 Jonathan Wakely : > I found a bug in the new std::get(tuple&&) function > where it didn't compile when trying to access reference member. > > The rest of this patch simplifies the code in by: > > - removing the redundant __add_ref etc. helpers. > - defining a __tuple_elem