Christian Hackl
2010-02-10 12:15:56 UTC
This shouldn't compile. I don't see any user defined overload
of D::operator&, so & is the built in operator, which requires
an lvalue.
I understand your explanation but where can I find in the Standardof D::operator&, so & is the built in operator, which requires
an lvalue.
why this shouldn't compile ?
gcc version 4.0.1 and around 4.4 gave warning but created exe.
Visual C++ 2008 Express gave no warning and error at the
highest warning level.
extensions by specifying /Za. With /Za specified, you'll get the
following errors:
vc.cpp(37) : error C2102: '&' requires l-value
vc.cpp(37) : error C2466: cannot allocate an array of constant size 0
x-post & f'up to microsoft.public.vc.language
--
Christian Hackl
***@sbox.tugraz.at
Milano 2008/2009 -- L'Italia chiamò, sì!
Christian Hackl
***@sbox.tugraz.at
Milano 2008/2009 -- L'Italia chiamò, sì!