Skip to content

Commit c4db743

Browse files
committed
Allow constructing RMatrix from a non-const buffer
1 parent e5da96c commit c4db743

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/RcppParallel/RMatrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class RMatrix {
204204
{
205205
}
206206

207-
inline RMatrix(const T* data, std::size_t nrow, std::size_t ncol)
207+
inline RMatrix(T* data, std::size_t nrow, std::size_t ncol)
208208
: data_(data), nrow_(nrow), ncol_(ncol)
209209
{
210210
}

0 commit comments

Comments
 (0)