#11 rapidxml_utils build warning - v1.13

open
nobody
None
5
2010-02-17
2010-02-17
encladeus
No

rapidxml::file<> xml_file("asdf.xml");

The above line of code now generates a build warning under VS2010, using updated STL libraries that incorporate some C++0x features.

...\rapidxml\rapidxml_utils.hpp(40): warning C4244: 'initializing' : conversion from 'std::streamoff' to 'size_t', possible loss of data

While this still builds and works fine, it would be nice to build without the warning.

Thanks.

Discussion

  • encladeus
    encladeus
    2010-02-23

    Fix for build warning with additional check for file being in bounds