I want to create an alias arr
for std::array<T, 32>
.
template<typename T>
using arr = std::array<T, 32>;
However, it does not work on GCC 4.4.6 which supports only C++0x(without type alias).
I think it is a very bad idea to use GCC 4.4.6 now, however, I want to know if there are some ways to simulate type alias.
The following code may work, but arr
is not precisely std::array<T, 32>
, so I want a better solution.
template<typename T>
struct arr : public std::array<T, 32>;
Aucun commentaire:
Enregistrer un commentaire