Guard DEBUG_NEW for Visual Studio and leak detection
parent
bcb7dffd5e
commit
8a6d18853d
|
|
@ -459,12 +459,21 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER >= 1300)
|
||||||
|
# pragma push_macro("new")
|
||||||
|
# undef new
|
||||||
|
#endif
|
||||||
|
|
||||||
void MoveInto(void *buffer) const
|
void MoveInto(void *buffer) const
|
||||||
{
|
{
|
||||||
AlgorithmParametersTemplate<T>* p = new(buffer) AlgorithmParametersTemplate<T>(*this);
|
AlgorithmParametersTemplate<T>* p = new(buffer) AlgorithmParametersTemplate<T>(*this);
|
||||||
CRYPTOPP_UNUSED(p); // silence warning
|
CRYPTOPP_UNUSED(p); // silence warning
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && (_MSC_VER >= 1300)
|
||||||
|
# pragma pop_macro("new")
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
T m_value;
|
T m_value;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue