Skip to content

Commit 663c9f4

Browse files
committed
dim3 as array
1 parent 41b96cf commit 663c9f4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dim3.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ class vec_n : public boost::integer_arithmetic<vec_n<N, T>>, public boost::integ
9393
ts_.fill((T)0);
9494
}
9595

96+
const std::array<T, N>& as_array() const {
97+
return ts_;
98+
}
99+
96100
// Otherwise the variadic template constructor becomes our copy constructor
97101
vec_n(const self_type& other) {
98102
ts_ = other.ts_;

0 commit comments

Comments
 (0)