Closed saturnjct closed 11 months ago
Perhaps you should also add signed char
to that, since it is considered a separate type from char
.
@pdimov, it seems that this issue existed in earlier versions of GCC. I was unable to replicate it using any compiler except GCC 4.1.2: https://godbolt.org/z/W4e6e5hdT Considering that create_escapes is a templated function, I assume that receiving no warning is the expected behavior which has been fixed in later versions of GCC. Do you think this is still worth fixing?
Link to ticket for reference: http://trac.cpp.al/trac10/ticket/5598
No, I don't think we need to care about GCC 4.1 at this point. The minimum supported version in Boost today is 4.8.
Avoid comparing to <= 0xFF and triggering a GCC warning. See https://svn.boost.org/trac/boost/ticket/5598