you are passing reference to orig. you should use ‘orig.bigIntVector’
BigInt::BigInt(BigInt const& orig)
: isPositive(orig.isPositive)
, base(orig.base)
, skip(orig.skip)
{
this->bigIntVector = new BigIntVector(*(orig.bigIntVector));
}
should use *(orig.bigIntVector)
10
solved Copy Constructor Issue C++: “0xC0000005: Access violation writing location 0x00000000.”