Remove std::copy usage.

This commit is contained in:
Ozomahtli 2023-07-25 21:59:50 +01:00 committed by GitHub
parent 3dec65b7fd
commit 7cc57dbd9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2896,7 +2896,7 @@ class bigint {
auto size = other.bigits_.size(); auto size = other.bigits_.size();
bigits_.resize(size); bigits_.resize(size);
auto data = other.bigits_.data(); auto data = other.bigits_.data();
std::copy(data, data + size, bigits_.data()); std::uninitialized_copy(data, data + size, bigits_.data());
exp_ = other.exp_; exp_ = other.exp_;
} }