pitrou commented on code in PR #48459:
URL: https://github.com/apache/arrow/pull/48459#discussion_r2662274779
##########
cpp/src/arrow/type_traits.h:
##########
@@ -1837,4 +1838,23 @@ constexpr bool is_union(const DataType& type) { return
is_union(type.id()); }
/// @}
+/// \addtogroup c-type-concepts
+/// @{
+
+// XXX: To be completed with more concepts as needed.
+
+template <typename T>
+concept CBooleanConcept = std::is_same_v<T, bool>;
Review Comment:
Apparently
[`std::same_as`](https://en.cppreference.com/w/cpp/concepts/same_as.html) can
be used, though I'm not sure whether it differs from `std::is_same_v`.
--
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]