23
23
namespace modm
24
24
{
25
25
// forward declaration
26
- template <typename T, uint8_t , uint8_t >
26
+ template <typename T, std:: size_t , std:: size_t >
27
27
class Matrix ;
28
28
29
29
/* *
@@ -54,7 +54,7 @@ namespace modm
54
54
* \ingroup modm_math_geometry
55
55
* \author Niklas Hauser
56
56
*/
57
- template <typename T, uint8_t N>
57
+ template <typename T, std:: size_t N>
58
58
class Vector
59
59
{
60
60
public:
@@ -71,8 +71,8 @@ namespace modm
71
71
bool operator > (const Vector &rhs) const ;
72
72
bool operator >= (const Vector &rhs) const ;
73
73
74
- const T& operator [] (uint8_t index) const ;
75
- T& operator [] (uint8_t index);
74
+ const T& operator [] (std:: size_t index) const ;
75
+ T& operator [] (std:: size_t index);
76
76
77
77
T* ptr ();
78
78
const T* ptr () const ;
@@ -104,21 +104,21 @@ namespace modm
104
104
asTransposedMatrix () const ;
105
105
106
106
public:
107
- static inline uint8_t
107
+ static inline std:: size_t
108
108
getSize ();
109
109
110
110
T coords[N];
111
111
};
112
112
113
- template < typename T, uint8_t N >
113
+ template < typename T, std:: size_t N >
114
114
struct detail ::MakeSigned< Vector<T, N> >
115
115
{ using type = Vector< SignedType<T>, N >; };
116
116
117
- template < typename T, uint8_t N >
117
+ template < typename T, std:: size_t N >
118
118
struct detail ::MakeUnsigned< Vector<T, N> >
119
119
{ using type = Vector< UnsignedType<T>, N >; };
120
120
121
- template < typename T, uint8_t N >
121
+ template < typename T, std:: size_t N >
122
122
struct detail ::WideType< Vector<T, N> >
123
123
{ using type = Vector< WideType<T>, N >; };
124
124
}
0 commit comments