licensepp
licensepp copied to clipboard
Issued License does not contain authority's signature on Windows
In the definition of copy constructor and assignment operator of class License, I needed to add code lines for m_authoritySignature
respectively. Are the following modifications valid?
License::License(const License& other):
m_issueDate(other.m_issueDate),
m_expiryDate(other.m_expiryDate),
m_licensee(other.m_licensee),
m_issuingAuthorityId(other.m_issuingAuthorityId),
m_licenseeSignature(other.m_licenseeSignature),
+++ m_authoritySignature(other.m_authoritySignature)
{
}
License& License::operator=(License other)
{
std::swap(m_issueDate, other.m_issueDate);
std::swap(m_expiryDate, other.m_expiryDate);
std::swap(m_licensee, other.m_licensee);
std::swap(m_licenseeSignature, other.m_licenseeSignature);
std::swap(m_issuingAuthorityId, other.m_issuingAuthorityId);
+++ std::swap(m_authoritySignature, other.m_authoritySignature);
return *this;
}