ambiguous std::fill with character array

me22 me22.ca@gmail.com
Thu Mar 27 22:21:00 GMT 2008


On Thu, Mar 27, 2008 at 6:10 PM, Maik Beckmann
<beckmann.maik@googlemail.com> wrote:
> Am Donnerstag 27 März 2008 23:04:21 schrieb me22:
>
> > Bug.  Your solution is likely faster than the original, but both should
>  > work.
>  >
>  > Judging by the error message, you found a very neat case where the
>  > enable_if is both true and false, thanks to the implicit conversion
>  > from char const[4] to char const*, so SFINAE can't prevent either
>  > instantiation, leading to the ambiguity.
>
>  Ok.
>
>  Will you take care of it or should I file a bug report?
>

I have nothing to do with the GCC project other than lurking on the
list, so it'd probably be best for you to post the bug, since you
found it.

~ Scott


More information about the Gcc-help mailing list