Skip to content

Commit

Permalink
ARROW-10137: [C++][R] Move nameof.h into R subproject
Browse files Browse the repository at this point in the history
Closes apache#8308 from bkietz/10137-Fix-cpp-helper-that-break

Authored-by: Benjamin Kietzman <[email protected]>
Signed-off-by: Neal Richardson <[email protected]>
  • Loading branch information
bkietz authored and GeorgeAp committed Jun 7, 2021
1 parent d7e160f commit 796ebbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions r/src/arrow_cpp11.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <vector>
#undef Free

#include "arrow/util/nameof.h"
#include "./nameof.h"

namespace cpp11 {

Expand Down Expand Up @@ -160,8 +160,8 @@ struct ns {
template <typename Pointer>
Pointer r6_to_pointer(SEXP self) {
if (!Rf_inherits(self, "ArrowObject")) {
std::string type_name =
arrow::util::nameof<typename std::remove_pointer<Pointer>::type>();
std::string type_name = arrow::util::nameof<
cpp11::decay_t<typename std::remove_pointer<Pointer>::type>>();
cpp11::stop("Invalid R object for %s, must be an ArrowObject", type_name.c_str());
}
void* p = R_ExternalPtrAddr(Rf_findVarInFrame(self, arrow::r::symbols::xp));
Expand Down
File renamed without changes.

0 comments on commit 796ebbe

Please sign in to comment.