home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / std / cplus / 1156 < prev    next >
Encoding:
Text File  |  1992-09-11  |  780 b   |  25 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!news.claremont.edu!jarthur.claremont.edu!jason
  3. From: jason@jarthur.claremont.edu (Jason Merrill)
  4. Subject: Integral promotions
  5. Message-ID: <1992Sep11.171215.337@muddcs.claremont.edu>
  6. Sender: news@muddcs.claremont.edu (The News System)
  7. Organization: Harvey Mudd College, Claremont, CA 91711
  8. Date: Fri, 11 Sep 1992 17:12:15 GMT
  9. Lines: 14
  10.  
  11. Why is the conversion int -> long (or unsigned int -> unsigned long) not
  12. considered an integral promotion?  
  13.  
  14. I am in the situation of trying to take either a pair of longs (with
  15. default arguments) or a double for creation of a Fraction.  If I do
  16. something like 
  17.  
  18. Fraction(1), 
  19.  
  20. my compiler (BC++ 3.0) complains about ambiguity.  This seems wrong to me.
  21.  
  22. --
  23. Jason Merrill
  24. jason@jarthur.claremont.edu
  25.