coord: add value_type typedef

This commit is contained in:
Danny Robson 2015-01-12 15:59:14 +11:00
parent 2640811e03
commit 143213db77

View File

@ -36,6 +36,8 @@ namespace util {
#endif
template <size_t S, typename T>
struct coord {
typedef T value_type;
coord () { ; }
coord (T v)
@ -53,6 +55,8 @@ namespace util {
template <typename T>
struct coord<1,T> {
typedef T value_type;
coord () { ; }
coord (T v)
@ -73,6 +77,8 @@ namespace util {
template <typename T>
struct coord<2,T> {
typedef T value_type;
coord () { ; }
coord (T v)
@ -100,6 +106,8 @@ namespace util {
template <typename T>
struct coord<3,T> {
typedef T value_type;
union {
T data[3];
struct {
@ -138,6 +146,8 @@ namespace util {
template <typename T>
struct coord<4,T> {
typedef T value_type;
union {
T data[4];
struct {