milesgranger commented on code in PR #14395:
URL: https://github.com/apache/arrow/pull/14395#discussion_r1012900184


##########
cpp/src/arrow/util/string_builder.h:
##########
@@ -44,6 +45,11 @@ class ARROW_EXPORT StringStreamWrapper {
 
 }  // namespace detail
 
+template <typename T>
+std::ostream& operator<<(std::ostream& os, std::optional<T> const& opt) {

Review Comment:
   Is there a better place to put it, or a different fix?
   
   > error: no match for 'operator<<' (operand types are 'std::ostream' {aka 
'std::basic_ostream<char>'} and 'const std::optional<long int>')
      49 |   stream << head;
         |   ~~~~~~~^~~~~~~
   



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to