Tuesday, October 19, 2010

Generic method name clash: recls 1.9.1 alpha 6 released

I've just released a new alpha of recls 1.9, which incorporates some defect-fixes to ensure it works correctly when compiled/linked in widestring mode, and some new features. Most particularly, I've added a get_file_size() method, which replaces the now deprecated size() method. The reason for this is that I got caught out by my own library when mistakenly using size() (which gives the number of bytes in the file entry) for the length of the entry's path. (I was doing so in combination with c_str(), which gives a pointer to the entry's path's character array.) Oops!

I figure if I can do it, so can any other user, hence the new method and the deprecation.

No comments:

Post a Comment