Topic: Proposal about standard conversions


Author: Valentin Bonnard <bonnardv@pratique.fr>
Date: 1996/11/07
Raw View
The DWP says: (4 Standard conversions [conv])
>4 One or more of the following standard conversions will be applied
>  to an expression if necessary to convert it to a required
>  destination type.

Is it too late to change that ?

I would prefer:

  One or more of the following standard conversions will be applied
  to an expression if necessary to convert it to a required
  destination type.

  4.1  Lvalue-to-rvalue conversion [conv.lval]
  4.2  Array-to-pointer conversion [conv.array]
  4.3  Function-to-pointer conversion [conv.func]
  4.4  Qualification conversions [conv.qual]

  One of the following standard conversions will be applied
  to an expression if necessary to convert it to a required
  destination type.

  4.5  Integral promotions [conv.prom]
  4.6  Floating point promotion [conv.fpprom]
  4.7  Integral conversions [conv.integral]
  4.8  Floating point conversions [conv.double]
  4.9  Floating-integral conversions [conv.fpint]
  4.10  Pointer conversions [conv.ptr]
  4.11  Pointer to member conversions [conv.mem]
  4.12  Base class conversion [conv.class]
  4.13  Boolean conversions [conv.bool]

Also what about suppressing:

In 4.9/2  Floating-integral conversions [conv.fpint]
> If the source type is  bool, the value false is converted to zero
> and the value true is converted to one.

--

Valentin Bonnard
mailto:bonnardv@pratique.fr
http://www.pratique.fr/~bonnardv (Informations sur le C++ en Francais)
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]