Optimize rapidjson std lib usage

This commit is contained in:
Wojtek Figat
2023-05-09 16:39:13 +02:00
parent e03516e22e
commit e68807d574
4 changed files with 10 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ public:
typedef uint64_t Type;
BigInteger(const BigInteger& rhs) : count_(rhs.count_) {
std::memcpy(digits_, rhs.digits_, count_ * sizeof(Type));
::memcpy(digits_, rhs.digits_, count_ * sizeof(Type));
}
explicit BigInteger(uint64_t u) : count_(1) {
@@ -60,7 +60,7 @@ public:
{
if (this != &rhs) {
count_ = rhs.count_;
std::memcpy(digits_, rhs.digits_, count_ * sizeof(Type));
::memcpy(digits_, rhs.digits_, count_ * sizeof(Type));
}
return *this;
}