Skip to content

Commit

Permalink
another const_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Jul 7, 2024
1 parent cd0f41a commit 1cb485b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/barrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ void char_set_string_elt(SEXP x, R_xlen_t i, const char* value) {

// [[Rcpp::register]]
SEXP* get_string_ptr(SEXP x) {
return RCPP_STRING_PTR(x);
// TODO: should we deprecate this?
return const_cast<SEXP*>(RCPP_STRING_PTR(x));
}

// [[Rcpp::register]]
Expand Down

0 comments on commit 1cb485b

Please sign in to comment.