Re: [PATCH] Use if-constexpr instead of overloading for customization point

2019-10-30 Thread Jonathan Wakely
On 30/10/19 17:42 +, Jonathan Wakely wrote: This combines two of the std::ranges::swap.operator() overloads into a single function template. Using if-constexpr to choose between implementations should give the compiler less work to do than using overloading. P.S. this is how all the other s

[PATCH] Use if-constexpr instead of overloading for customization point

2019-10-30 Thread Jonathan Wakely
This combines two of the std::ranges::swap.operator() overloads into a single function template. Using if-constexpr to choose between implementations should give the compiler less work to do than using overloading. * include/std/concepts (std::ranges::swap): Use a single overload for