id summary reporter owner description type status milestone component version severity resolution keywords cc 2986 Boost.Filesystem warnings when wchar_t is 16-bit are a problem when warnings are treated as errors spencer@… Beman Dawes "When wchar_t is 16-bit, some code in Boost.Filesystem can trigger range comparison warnings: src/libs/detail/utf8_codecvt_facet.cpp:245: warning: comparison is always true due to limited range of data type src/libs/detail/utf8_codecvt_facet.cpp:248: warning: comparison is always true due to limited range of data type src/libs/detail/utf8_codecvt_facet.cpp:251: warning: comparison is always true due to limited range of data type There is a note near this code that says to ignore these warnings if wchar_t is UCS2 (16-bit), but if the compiler is treating (all) warnings as errors, this is difficult to do automatically. Something along the lines of the attached patch should allow the code to work properly in both cases. An alternative solution would be to completely remove the specialization if wchar_t is 16-bit (i.e. wrap the whole function in the #ifdef guards)." Patches closed Boost 1.40.0 filesystem Boost 1.38.0 Cosmetic fixed warnings wchar_t UCS2