Article View: comp.std.c++
Article #145Integral promotions
From: Jason Merrill
Date: Fri, 11 Sep 1992 17:12
Date: Fri, 11 Sep 1992 17:12
14 lines
804 bytes
804 bytes
Why is the conversion int -> long (or unsigned int -> unsigned long) not considered an integral promotion? I am in the situation of trying to take either a pair of longs (with default arguments) or a double for creation of a Fraction. If I do something like Fraction(1), my compiler (BC++ 3.0) complains about ambiguity. This seems wrong to me. -- Jason Merrill jason@jarthur.claremont.edu
Technical Details
Message-ID:
<1992Sep11.171215.337@muddcs.claremont.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!jarthur.claremont.edu!jasonShow Full Headers
Complete Article Headers
Newsgroups: comp.std.c++ Path: arc1-ca.pugleaf.net!sparky!uunet!news.claremont.edu!jarthur.claremont.edu!jason From: jason@jarthur.claremont.edu (Jason Merrill) Subject: Integral promotions Message-ID: <1992Sep11.171215.337@muddcs.claremont.edu> Sender: news@muddcs.claremont.edu (The News System) Organization: Harvey Mudd College, Claremont, CA 91711 Date: Fri, 11 Sep 1992 17:12:15 GMT Lines: 14