home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c++
- Path: 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
-
- 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
-