Topic: Is this ambiguous ?
Author: Jody Goldberg <jody+@cmu.edu>
Date: 1995/11/21 Raw View
Is this ambiguous ?
struct A
{
operator int *();
operator int const *();
};
void f()
{
A a;
int i = a[0];
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
jody+@cmu.edu
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]