Opened 6 years ago

#12373 new Bugs

Basic sign conversion

Reported by: Brett Hale <brettyhale@…> Owned by: Beman Dawes
Milestone: To Be Determined Component: filesystem
Version: Boost 1.61.0 Severity: Cosmetic
Keywords: Cc:

Description

Mature libraries like boost.filesystem shouldn't be giving these sorts of errors with '-Wconversion' checks...

/Users/brett/local/include/boost/filesystem/string_file.hpp:27:27: warning: 
      implicit conversion changes signedness: 'size_type' (aka 'unsigned long')
      to 'streamsize' (aka 'long') [-Wsign-conversion]
  file.write(str.c_str(), str.size());
  ~~~~                    ^~~~~~~~~~
/Users/brett/local/include/boost/filesystem/string_file.hpp:38:22: warning: 
      implicit conversion changes signedness: 'std::size_t'
      (aka 'unsigned long') to 'streamsize' (aka 'long') [-Wsign-conversion]
  file.read(&str[0], sz);

Change History (0)

Note: See TracTickets for help on using tickets.