File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
# cpp11 (development version)
2
2
3
+ * Implicit conversion from ` sexp ` to ` bool ` , ` size_t ` , and ` double ` has been
4
+ marked as deprecated and will be removed in the next version of cpp11. The 3
5
+ packages that were using this have been notified and sent PRs. The recommended
6
+ approach is to instead use ` cpp11::as_cpp<T> ` , which performs type and length
7
+ checking, making it much safer to use.
8
+
3
9
* New ` writable::data_frame ` constructor that also takes the number of rows as
4
10
input. This accounts for the edge case where the input list has 0 columns but
5
11
you'd still like to specify a known number of rows (#272 ).
Original file line number Diff line number Diff line change @@ -65,10 +65,14 @@ class sexp {
65
65
}
66
66
67
67
operator SEXP () const { return data_; }
68
+ SEXP data () const { return data_; }
69
+
70
+ // / DEPRECATED: Do not use this, it will be removed soon.
68
71
operator double () const { return REAL_ELT (data_, 0 ); }
72
+ // / DEPRECATED: Do not use this, it will be removed soon.
69
73
operator size_t () const { return REAL_ELT (data_, 0 ); }
74
+ // / DEPRECATED: Do not use this, it will be removed soon.
70
75
operator bool () const { return LOGICAL_ELT (data_, 0 ); }
71
- SEXP data () const { return data_; }
72
76
};
73
77
74
78
} // namespace cpp11
You can’t perform that action at this time.
0 commit comments