On Tue, 12 Jul 2022 at 07:48, Jonathan Wakely wrote: > You also need <type_traits> for the enable_if and is_array traits. With > libstdc++ that gets included by <memory> but that's guaranteed for other > library implementations.
Sorry, I was replying from my phone and missed a word. That's **not** guaranteed for other library implementations. (It's not formally guaranteed for libstdc++ either, but in practice nearly every libstdc++ header includes <type_traits> because nearly every header needs part of it, and that's unlikely to change).