[cfe-dev] template typedef

Jochen Wilhelmy j.wilhelmy at arcor.de
Tue Mar 16 14:10:31 PDT 2010


Hi!

would it be possible to add a non-standard extension for template typedefs?

e.g.
template <typename Type>

typedef Type __attribute__((ext_vector_type(4))) Vector4;


Vector4<float> myFloatVector;


or other example:

template <typename Type>
typedef std::map MyMap;

MyMap<int> myMap;


-Jochen




More information about the cfe-dev mailing list