Ignore:
Timestamp:
10/18/13 17:52:38 (11 years ago)
Author:
tbretz
Message:
Hopefully finished removing the std namespace from the headers.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/checksum.h

    r17141 r17264  
    77
    88#include <stdint.h>
    9 
    10 namespace std
    11 {
    129
    1310class Checksum
     
    4340        return *this;
    4441    }
     42
    4543    Checksum operator+(Checksum sum) const
    4644    {
     
    6058        if (len%4>0)
    6159        {
    62             ostringstream sout;
    63             sout << "Length " << len << " not dividable by 4." << endl;
     60            std::ostringstream sout;
     61            sout << "Length " << len << " not dividable by 4";
    6462
    6563#ifdef __EXCEPTIONS
    66             throw runtime_error(sout.str());
     64            throw std::runtime_error(sout.str());
    6765#else
    6866            gLog << ___err___ << "ERROR - " << sout.str() << endl;
     
    143141    }
    144142
    145     bool add(const vector<char> &v, bool big_endian = true)
     143    bool add(const std::vector<char> &v, bool big_endian = true)
    146144    {
    147145        return add(v.data(), v.size(), big_endian);
    148146    }
    149147
    150     string str(bool complm=true) const
    151     {
    152         string rc(16,0);
     148    std::string str(bool complm=true) const
     149    {
     150        std::string rc(16,0);
    153151
    154152        const uint8_t exclude[13] =
     
    241239   }
    242240};
    243 }
    244241
    245242#endif
Note: See TracChangeset for help on using the changeset viewer.