pitrou commented on a change in pull request #166:
URL: https://github.com/apache/arrow-cookbook/pull/166#discussion_r829309278
##########
File path: cpp/code/basic_arrow.cc
##########
@@ -63,3 +66,54 @@ arrow::Status ReturnNotOk() {
TEST(BasicArrow, ReturnNotOkNoMacro) { ASSERT_OK(ReturnNotOkMacro()); }
TEST(BasicArrow, ReturnNotOk) { ASSERT_OK(ReturnNotOk()); }
+
+class TypeCountVisitor : public arrow::TypeVisitor {
+ public:
+ uint64_t nested_count;
+ uint64_t non_nested_count;
+
+ template <typename T>
+ arrow::enable_if_not_nested<T, arrow::Status> Visit(const T&) {
Review comment:
Indeed, because you must override the exact methods. Adding `override`
at the end helps ensure you didn't make a mistake when overriding, btw.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]