Skip to content

Commit a905ac1

Browse files
committed
Okay to access private members in copy ctor
1 parent 7ce0f59 commit a905ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/Rcpp/vector/ListOf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ListOf {
3636
template <typename U>
3737
ListOf(const U& data_): list(data_) {}
3838

39-
ListOf(const ListOf& other): list(other.get()) {}
39+
ListOf(const ListOf& other): list(other.list) {}
4040

4141
ListOf& operator=(const ListOf& other) {
4242
if (this != &other) {

0 commit comments

Comments
 (0)