Re: [PATCH] Use __is_same_as for std::is_same and std::is_same_v

2019-10-16 Thread Jonathan Wakely
On 16/10/19 10:43 +0100, Jonathan Wakely wrote: On 16/10/19 10:42 +0100, Jonathan Wakely wrote: On 12/10/19 18:15 +0200, Romain Geissler wrote: Le sam. 12 oct. 2019 à 17:44, Romain Geissler a écrit : It looks like this creates the following error when I try to bootstrap clang 9.0.0 using the

Re: [PATCH] Use __is_same_as for std::is_same and std::is_same_v

2019-10-16 Thread Jonathan Wakely
On 16/10/19 10:42 +0100, Jonathan Wakely wrote: On 12/10/19 18:15 +0200, Romain Geissler wrote: Le sam. 12 oct. 2019 à 17:44, Romain Geissler a écrit : It looks like this creates the following error when I try to bootstrap clang 9.0.0 using the latest gcc and libstdc++ from trunk. Note that w

Re: [PATCH] Use __is_same_as for std::is_same and std::is_same_v

2019-10-16 Thread Jonathan Wakely
On 12/10/19 18:15 +0200, Romain Geissler wrote: Le sam. 12 oct. 2019 à 17:44, Romain Geissler a écrit : It looks like this creates the following error when I try to bootstrap clang 9.0.0 using the latest gcc and libstdc++ from trunk. Note that with g++, there is no problem, however it looks li

Re: [PATCH] Use __is_same_as for std::is_same and std::is_same_v

2019-10-12 Thread Romain Geissler
Le sam. 12 oct. 2019 à 17:44, Romain Geissler a écrit : > > It looks like this creates the following error when I try to bootstrap > clang 9.0.0 using the latest gcc and libstdc++ from trunk. Note that > with g++, there is no problem, however it looks like clang++ has some > problem with the new h

Re: [PATCH] Use __is_same_as for std::is_same and std::is_same_v

2019-10-12 Thread Romain Geissler
Le ven. 11 oct. 2019 à 17:50, Jonathan Wakely a écrit : > > By using the built-in we don't need to match a partial specialization > for std::is_same and don't need to instantiate std::is_same at all for > uses of std::is_same_v. > > * include/std/type_traits (is_same): Replace partial spec

[PATCH] Use __is_same_as for std::is_same and std::is_same_v

2019-10-11 Thread Jonathan Wakely
By using the built-in we don't need to match a partial specialization for std::is_same and don't need to instantiate std::is_same at all for uses of std::is_same_v. * include/std/type_traits (is_same): Replace partial specialization by using __is_same_as built-in in primary templa