Skip to content

Commit a216a3d

Browse files
krlmlrDavisVaughan
authored andcommitted
Add forwarder, no idea why std::move() is necessary
1 parent 70f9fe9 commit a216a3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inst/include/cpp11/data_frame.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ class data_frame : public list {
6666
namespace writable {
6767
class data_frame : public cpp11::data_frame {
6868
private:
69+
writable::list set_data_frame_attributes(writable::list&& x) {
70+
return set_data_frame_attributes(std::move(x), calc_nrow(x));
71+
}
72+
6973
writable::list set_data_frame_attributes(writable::list&& x, int nrow) {
7074
x.attr(R_RowNamesSymbol) = {NA_INTEGER, -nrow};
7175
x.attr(R_ClassSymbol) = "data.frame";

0 commit comments

Comments
 (0)