Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 5, 2019. It is now read-only.

Commit 5e335e1

Browse files
committed
update RcppFireAs.h
1 parent 9d2a3f2 commit 5e335e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

inst/include/RcppFireAs.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ namespace RcppFire{
4444
>( object, buff ) ;
4545
}
4646

47-
STORAGE* data_dispatch(::Rcpp::traits::false_type){
47+
const STORAGE* data_dispatch(::Rcpp::traits::false_type) const {
4848
return start;
4949
}
50-
value_type* data_dispatch(::Rcpp::traits::true_type){
50+
const value_type* data_dispatch(::Rcpp::traits::true_type) const {
5151
return buff.data();
5252
}
53-
size_t size_dispatch(::Rcpp::traits::false_type){
53+
size_t size_dispatch(::Rcpp::traits::false_type) const {
5454
return ::Rf_length(this->t);
5555
}
56-
size_t size_dispatch(::Rcpp::traits::true_type){
56+
size_t size_dispatch(::Rcpp::traits::true_type) const {
5757
return buff.size();
5858
}
5959

@@ -75,7 +75,7 @@ namespace RcppFire{
7575
}
7676
~SEXP2CxxPtr(){}
7777

78-
value_type* data() const {
78+
const value_type* data() const {
7979
return data_dispatch(
8080
typename ::Rcpp::traits::r_sexptype_needscast<value_type>()
8181
);

0 commit comments

Comments
 (0)