[Groonga-commit] groonga/groonga at 316a32e [master] Fix build error on macOS (#909)

Back to archive index
Yosuke Shiro null+****@clear*****
Wed Feb 27 14:55:00 JST 2019


Yosuke Shiro	2019-02-27 14:55:00 +0900 (Wed, 27 Feb 2019)

  Revision: 316a32eb2c6c94dd46e3fcf3698fe08ec8205a8a
  https://github.com/groonga/groonga/commit/316a32eb2c6c94dd46e3fcf3698fe08ec8205a8a

  Message:
    Fix build error on macOS (#909)

  Modified files:
    lib/arrow.cpp

  Modified: lib/arrow.cpp (+6 -3)
===================================================================
--- lib/arrow.cpp    2019-02-27 08:45:32 +0900 (189c7a85d)
+++ lib/arrow.cpp    2019-02-27 14:55:00 +0900 (9161cf6ab)
@@ -742,9 +742,10 @@ grn_arrow_load(grn_ctx *ctx,
   std::shared_ptr<arrow::io::MemoryMappedFile> input;
   auto status =
     arrow::io::MemoryMappedFile::Open(path, arrow::io::FileMode::READ, &input);
+  std::ostringstream context;
   if (!grnarrow::check_status(ctx,
                               status,
-                              std::ostringstream() <<
+                              context <<
                               "[arrow][load] failed to open path: " <<
                               "<" << path << ">")) {
     GRN_API_RETURN(ctx->rc);
@@ -763,9 +764,10 @@ grn_arrow_load(grn_ctx *ctx,
   for (int i = 0; i < n_record_batches; ++i) {
     std::shared_ptr<arrow::RecordBatch> record_batch;
     status = reader->ReadRecordBatch(i, &record_batch);
+    std::ostringstream context;
     if (!grnarrow::check_status(ctx,
                                 status,
-                                std::ostringstream("") <<
+                                context <<
                                 "[arrow][load] failed to get " <<
                                 "the " << i << "-th " << "record")) {
       break;
@@ -830,9 +832,10 @@ grn_arrow_dump_columns(grn_ctx *ctx,
 #ifdef GRN_WITH_ARROW
   std::shared_ptr<arrow::io::FileOutputStream> output;
   auto status = arrow::io::FileOutputStream::Open(path, &output);
+  std::stringstream context;
   if (!grnarrow::check_status(ctx,
                               status,
-                              std::stringstream() <<
+                              context <<
                               "[arrow][dump] failed to open path: " <<
                               "<" << path << ">")) {
     GRN_API_RETURN(ctx->rc);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190227/614a463c/attachment-0001.html>


More information about the Groonga-commit mailing list
Back to archive index