#20 Bug

closed
nobody
None
5
2011-02-23
2011-01-12
Anonymous
No

Hi,

In the Outputter.cpp you have a small issue there :

std::string strip(std::string in) {
for (size_t i=in.length(); i; --i)
if (in[i] == '/' || in[i] == '\\')
return in.substr(i + 1, in.length() - i);
return in;
}

It should be :
for (size_t i=in.length()-1; i; --i)

However your code is working in release mode ....
But it will fail in debug mode

Thanks

Discussion

  • Narinder Claire

    Narinder Claire - 2011-02-23

    Indeed .. I also noticed this yesterday .. I caused a debug assertion failure when building in Visual Studio 2010 Its now fixed

     
  • Narinder Claire

    Narinder Claire - 2011-02-23
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks