Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-04-11 19:40:04


How about the following?

saveData( std::string fileInfo)
{
    os << userSaveConfig;
    if (userSaveConfig )
        os << saveConfig;
    if (optionSave)
        os < saveOptions;
}

getData(std::string fileInfo)
{
    int userSaveConfig;
    os >> userSaveConfig
    if (userSaveConfig )
        os << saveConfig;
    if (optionSave)
        os < saveOptions;
}

Robert Ramey


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk