This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/16396] ostream << volatile char* converts to ostream << bool


------- Additional Comments From pcarlini at suse dot de  2004-08-23 00:05 -------
The explanation is actually rather straightforward: roughly, missing a perfect
match, a match with minor adjustments and a match with promotion, a match with
standard conversions is looked for: there is a standard conversion from pointer
to bool, *not* to other integral types.

For more details, see Vendevoorde/Josuttis appendix B and the standard, sec 4.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16396


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]