Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#4953 closed Patches (invalid)

Signed/unsigned mismatch warning in boost/mpl/print.hpp

Reported by: Rich McKeever <richmckeever@…> Owned by: Aleksey Gurtovoy
Milestone: To Be Determined Component: mpl
Version: Boost 1.44.0 Severity: Cosmetic
Keywords: Cc:

Description

Line 60 of print.hpp has a signed/unsigned mismatch warning with GCC 4.3.0 on Mac OS 10.6.4. The attached patch resolves the warning.

Attachments (2)

print.hpp (1.5 KB ) - added by Rich McKeever <richmckeever@…> 12 years ago.
print.hpp.diff (537 bytes ) - added by Rich McKeever <richmckeever@…> 12 years ago.

Download all attachments as: .zip

Change History (6)

by Rich McKeever <richmckeever@…>, 12 years ago

Attachment: print.hpp added

comment:1 by Vicente Botet <vicente.botet@…>, 12 years ago

Please could you a .patch file so we can see the differences?

by Rich McKeever <richmckeever@…>, 12 years ago

Attachment: print.hpp.diff added

comment:2 by Steven Watanabe, 12 years ago

Resolution: invalid
Status: newclosed

This code is supposed to produce a warning.

comment:3 by anonymous, 10 years ago

Okay, it's supposed to produce a warning. Why? At least point us towards the explanation!

comment:4 by Steven Watanabe, 10 years ago

mpl::print is a intended as an aid to debugging template metaprograms. The idea is that it the warning message includes the template argument so you can see what the type is.

Note: See TracTickets for help on using tickets.