Don't use C++11 features.

celladd
cc9cii 10 years ago
parent 28259f914c
commit dc9af19dcf

@ -40,9 +40,9 @@ namespace CSMWorld
ESXRecordT mBase;
ESXRecordT mModified;
Record() = default;
Record(const Record&) = default;
Record& operator= (const Record&) = default;
Record();
Record(const Record& record);
Record& operator= (const Record& record);
Record(State state,
const ESXRecordT *base = 0, const ESXRecordT *modified = 0);
@ -69,6 +69,31 @@ namespace CSMWorld
///< Merge modified into base.
};
template <typename ESXRecordT>
Record<ESXRecordT>::Record()
: mBase(), mModified()
{ }
template <typename ESXRecordT>
Record<ESXRecordT>::Record(const Record& record)
: mBase(record.mBase), mModified(record.mModified)
{
mState = record.mState;
}
template <typename ESXRecordT>
Record<ESXRecordT>& Record<ESXRecordT>::operator= (const Record& record)
{
if(this != &record)
{
mBase = record.mBase;
mModified = record.mModified;
mState = record.mState;
}
return *this;
}
template <typename ESXRecordT>
Record<ESXRecordT>::Record(State state, const ESXRecordT *base, const ESXRecordT *modified)
{

Loading…
Cancel
Save