Uh oh!
There was an error while loading. Please reload this page.
ARROW-17814: [C++] Remove make_unique reimplementation - #14204
Conversation
pitrou
left a comment
There was a problem hiding this comment.
Thanks! Is it also possible to remove occurrences of using std::make_unique and instead write std::make_unique in full?
wgtmac
commented
Sep 22, 2022
Thanks for the review! Please check it again. @pitrou |
pitrou
commented
Sep 22, 2022
I'll just wait for CI now. |
pitrou
commented
Sep 22, 2022
I rebased and fixed conflicts. |
Use std::make_unique instead.
wgtmac
commented
Sep 22, 2022
I have done the same thing. Sorry for missing your commit. @pitrou |
ursabot
commented
Sep 23, 2022
Benchmark runs are scheduled for baseline = 0310add and contender = 4cb7b50. 4cb7b50 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
ursabot
commented
Sep 23, 2022
['Python', 'R'] benchmarks have high level of regressions. |
kou
commented
Sep 23, 2022
@wgtmac This breaks our lint: https://github.com/apache/arrow/actions/runs/3105831802/jobs/5031935208#step:5:866 --- /arrow/cpp/src/arrow/type.cc+++ /arrow/cpp/src/arrow/type.cc (after clang format)@@ -1723,8 +1723,7 @@
SchemaBuilder::SchemaBuilder(std::vector<std::shared_ptr<Field>> fields,
ConflictPolicy policy,
Field::MergeOptions field_merge_options) {
- impl_ = std::make_unique<Impl>(std::move(fields), nullptr, policy,- field_merge_options);+ impl_ = std::make_unique<Impl>(std::move(fields), nullptr, policy, field_merge_options);
}
SchemaBuilder::SchemaBuilder(const std::shared_ptr<Schema>& schema, ConflictPolicy policy,
...Could you fix this as a follow-up pull request? Or do you want me to fix this? |
kou
commented
Sep 23, 2022
pitrou
commented
Sep 23, 2022
Oops, I don't know how I missed that. @kou I'd be glad if you could do it :-) |
kou
commented
Sep 23, 2022
OK. I'll do it. |
kou
commented
Sep 23, 2022
This is a follow-up of #14204. Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Use std::make_unique instead. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
This is a follow-up of apache#14204. Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Use std::make_unique instead.