Re: [PATCH] libstdc++: Prefer const T to std::add_const_t

2022-07-12 Thread Jonathan Wakely via Gcc-patches
On Thu, 7 Jul 2022 at 17:55, Jonathan Wakely via Libstdc++ wrote: > > Does anybody see a problem with this change? The point is to avoid > unnecessary class template instantiations. > > Tested aarch64-linux. Pushed to trunk now. > > -- >8 -- > > For any typedef-name or template parameter, T, add

[PATCH] libstdc++: Prefer const T to std::add_const_t

2022-07-07 Thread Jonathan Wakely via Gcc-patches
Does anybody see a problem with this change? The point is to avoid unnecessary class template instantiations. Tested aarch64-linux. -- >8 -- For any typedef-name or template parameter, T, add_const_t is equivalent to T const, so we can avoid instantiating the std::add_const class template and ju