I'm using gcc-4.9 which does not have the is_trivially_constructible
type trait. Looking into the libstdc++ source code (type_traits), this depends on __is_trivially_constructible
which is implemented in the compiler itself.
I was wondering if it was possible to implement this trait as a library rather than relying on compiler such that I can use this in my project which is stuck using gcc-4.9.
is_scalar
is used which rather seems like a first approximation. – Ferrer