@@ -35,8 +35,7 @@ class data_frame : public list {
3535 return R_NilValue;
3636 }
3737
38- // @pachadotdev: + noexcept
39- static R_xlen_t calc_nrow (SEXP x) noexcept {
38+ static R_xlen_t calc_nrow (SEXP x) {
4039 auto nms = get_attrib0 (x, R_RowNamesSymbol);
4140 bool has_short_rownames =
4241 (Rf_isInteger (nms) && Rf_xlength (nms) == 2 && INTEGER (nms)[0 ] == NA_INTEGER);
@@ -59,8 +58,8 @@ class data_frame : public list {
5958 /* Adapted from
6059 * https://github.com/wch/r-source/blob/f2a0dfab3e26fb42b8b296fcba40cbdbdbec767d/src/main/attrib.c#L198-L207
6160 */
62- R_xlen_t nrow () const noexcept { return calc_nrow (*this ); }
63- R_xlen_t ncol () const noexcept { return size (); }
61+ R_xlen_t nrow () const { return calc_nrow (*this ); }
62+ R_xlen_t ncol () const { return size (); }
6463};
6564
6665namespace writable {
@@ -90,16 +89,15 @@ class data_frame : public cpp11::data_frame {
9089 using cpp11::data_frame::ncol;
9190 using cpp11::data_frame::nrow;
9291
93- // @pachadotdev: + noexcept
94- attribute_proxy<data_frame> attr (const char * name) const noexcept const {
92+ attribute_proxy<data_frame> attr (const char * name) const const {
9593 return {*this , name};
9694 }
9795
98- attribute_proxy<data_frame> attr (const std::string& name) const noexcept {
96+ attribute_proxy<data_frame> attr (const std::string& name) const {
9997 return {*this , name.c_str ()};
10098 }
10199
102- attribute_proxy<data_frame> attr (SEXP name) const noexcept { return {*this , name}; }
100+ attribute_proxy<data_frame> attr (SEXP name) const { return {*this , name}; }
103101
104102 attribute_proxy<data_frame> names () const { return {*this , R_NamesSymbol}; }
105103};
0 commit comments