Hi,
On Thu, Aug 4, 2011 at 5:29 PM, Miles Bader wrote:
> Jonathan Wakely writes:
>>> "g++ -Wall -Wextra ..." should flag a warning on the following code
>>> but does not.
>>
>> Thanks for the apology, but it should still be reported to bugzilla
>> not to this list.
I was hoping someone could su
Hi,
"g++ -Wall -Wextra ..." should flag a warning on the following code
but does not.
std::pair
get_XYZ_data()
{
XYZ result;
return std::pair(1, result);
}
This is a violation of Scott Meyer's "Effective C++" Item 21 "Don't
try to return a reference when you must return an object." GCC