Skip to content

Commit 09928b6

Browse files
un_pointer<objectT>> was wrong. closes #116
1 parent ef428d0 commit 09928b6

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2014-02-17 Romain Francois <[email protected]>
2+
3+
* inst/include/Rcpp/traits/un_pointer.h: fix bug in un_pointer for object<T>
4+
15
2014-02-16 JJ Allaire <[email protected]>
26

37
* src/attributes.cpp Replace (incorrect) call to

inst/NEWS.Rd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
\item Fix issue preventing packages with Rcpp::interfaces attribute
2222
from compiling.
2323
}
24+
\item Changes in Rcpp modules
25+
\itemize{
26+
\item \code{un_pointer} implementation for \code{object} was wrong.
27+
}
2428
}
2529
}
2630

inst/include/Rcpp/traits/un_pointer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// un_pointer.h: Rcpp R/C++ interface class library --
55
//
6-
// Copyright (C) 2012-2013 Dirk Eddelbuettel and Romain Francois
6+
// Copyright (C) 2012-2014 Dirk Eddelbuettel and Romain Francois
77
//
88
// This file is part of Rcpp.
99
//
@@ -28,7 +28,7 @@ namespace traits{
2828

2929
template <typename T> struct un_pointer { typedef T type ;} ;
3030
template <typename T> struct un_pointer<T*> { typedef T type ;} ;
31-
template <typename T> struct un_pointer< object<T> > { typedef T* type ;} ;
31+
template <typename T> struct un_pointer< object<T> > { typedef T type ;} ;
3232

3333
} // namespace traits
3434
} // namespace Rcpp

0 commit comments

Comments
 (0)