
26 Sep
2011
26 Sep
'11
1:47 p.m.
On 26 September 2011 06:02, Olaf van der Spek <ml@vdspek.org> wrote:
On Mon, Sep 26, 2011 at 8:30 AM, Christian Holmquist <c.holmquist@gmail.com> wrote:
Sometimes types unfortunately have implicit conversion, and if the compiler finds them (I guess that what's common_type deduces?),I might end up with a bogus expression that unfortunately compiles.
Could you give a concrete example (with 3 type clamp)?
enum A{a}; enum B(b); main() { clamp(0, a, b); }