Skip to content

Commit bd63c6c

Browse files
committed
applied fixes for two errors caught and corrected by Kevin Ushey:
add missing trait type on sort() -- fixes #88 add missing RObject ctor definition -- fixes #89
1 parent a8b50f1 commit bd63c6c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inst/include/Rcpp/RObject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace Rcpp{
3030
/**
3131
* default constructor. uses R_NilValue
3232
*/
33-
RObject_Impl() ;
33+
RObject_Impl() {};
3434

3535
RCPP_GENERATE_CTOR_ASSIGN(RObject_Impl)
3636

inst/include/Rcpp/vector/Vector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class Vector :
239239
}
240240

241241
Vector& sort(){
242-
typename traits::storage_type<RTYPE>* start = internal::r_vector_start<RTYPE>( Storage::get__() ) ;
242+
typename traits::storage_type<RTYPE>::type* start = internal::r_vector_start<RTYPE>( Storage::get__() ) ;
243243
std::sort(
244244
start, start + size(),
245245
typename traits::comparator_type<RTYPE>::type()

0 commit comments

Comments
 (0)