M
magnus.moraberg
Hi,
Is it possible to combine the following into one function -
inline virtual void saveDataToFile()
{
if(isInitialized)
saveDataToFile( this->filePath);
else
throw MyException ("Can't save this object to file since it has not
been initialized from such a file");
}
inline virtual void saveDataToFile(const string& filePath)
{
if(isInitialized)
saveDataToFile( filePath);
else
throw MyException ("Can't save this object to file since it has not
been initialized from such a file");
}
Thanks,
Barry
Is it possible to combine the following into one function -
inline virtual void saveDataToFile()
{
if(isInitialized)
saveDataToFile( this->filePath);
else
throw MyException ("Can't save this object to file since it has not
been initialized from such a file");
}
inline virtual void saveDataToFile(const string& filePath)
{
if(isInitialized)
saveDataToFile( filePath);
else
throw MyException ("Can't save this object to file since it has not
been initialized from such a file");
}
Thanks,
Barry