I have this class.h:
class CItemPriceListTableCache: public cache< TItemPriceListTable >
{
public:
virtual ~CItemPriceListTableCache();
};
And i have this class.cpp :
CItemPriceListTableCache::~CItemPriceListTableCache()
{
}
Now come questions :
Why is ~CItemPriceListTableCache
funtion body empty ?
If i delete from class.cpp
the ~CItemPriceListTableCache
should be ok ? Will affect this my codes ? With what should i replace ~CItemPriceListTableCache
function body ? I just don't like to see empty functions. Even if i have one line in function is ok for me , i just don't like function to be empty.
If i complete delete virtual decalaration of destructor from class should be ok ?
EDIT 1: Removed useless txt from question.
EDIT 2: class.h
class DH2KeyAgreement: public KeyAgreement
{
public:
DH2KeyAgreement();
};
class.cpp
DH2KeyAgreement::DH2KeyAgreement() : dh_(), dh2_(dh_)
{
}
How should i use here the default
?
Should e fine like this ?
class DH2KeyAgreement: public KeyAgreement
{
public:
DH2KeyAgreement():dh_(), dh2_(dh_)=default;
};