pitrou commented on PR #46926:
URL: https://github.com/apache/arrow/pull/46926#issuecomment-4681875739

   @Taepper I get this error when compiling with gcc 15.2.0:
   ```
   In file included from /home/antoine/arrow/dev/cpp/src/arrow/compute/api.h:33,
                    from 
/home/antoine/arrow/dev/cpp/src/arrow/array/array_dict.cc:33:
   /home/antoine/arrow/dev/cpp/src/arrow/compute/api_vector.h: In member 
function 'arrow::compute::Ordering arrow::compute::SortOptions::AsOrdering() 
&&':
   /home/antoine/arrow/dev/cpp/src/arrow/compute/api_vector.h:123:58: error: 
converting to 'arrow::compute::Ordering' from initializer list would use 
explicit constructor 
'arrow::compute::Ordering::Ordering(std::vector<arrow::compute::SortKey>)'
     123 |   Ordering AsOrdering() && { return {std::move(sort_keys)}; }
         |                                                          ^
   In file included from 
/home/antoine/arrow/dev/cpp/src/arrow/compute/api_vector.h:24:
   /home/antoine/arrow/dev/cpp/src/arrow/compute/ordering.h:66:12: note: 
'arrow::compute::Ordering::Ordering(std::vector<arrow::compute::SortKey>)' 
declared here
      66 |   explicit Ordering(std::vector<SortKey> sort_keys) : 
sort_keys_(std::move(sort_keys)) {}
         |            ^~~~~~~~
   /home/antoine/arrow/dev/cpp/src/arrow/compute/api_vector.h: In member 
function 'arrow::compute::Ordering arrow::compute::SortOptions::AsOrdering() 
const &':
   /home/antoine/arrow/dev/cpp/src/arrow/compute/api_vector.h:124:51: error: 
converting to 'arrow::compute::Ordering' from initializer list would use 
explicit constructor 
'arrow::compute::Ordering::Ordering(std::vector<arrow::compute::SortKey>)'
     124 |   Ordering AsOrdering() const& { return {sort_keys}; }
         |                                                   ^
   /home/antoine/arrow/dev/cpp/src/arrow/compute/ordering.h:66:12: note: 
'arrow::compute::Ordering::Ordering(std::vector<arrow::compute::SortKey>)' 
declared here
      66 |   explicit Ordering(std::vector<SortKey> sort_keys) : 
sort_keys_(std::move(sort_keys)) {}
         |            ^~~~~~~~
   ```
   


-- 
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]

Reply via email to