by Oncaphillis <oncaphillis@[EMAIL PROTECTED]
>
Apr 18, 2008 at 05:20 PM
red floyd wrote:
> Oncaphillis wrote:
>> Hi all,
>>
>> Working with g++ 3.* I have to include 3rd
>> party C-headers which tend to use the same
>> name for typedefs and
>> variables
>>
>> e.g:
>>
>> <snip>
>> /* test.h
>> */
>>
>> typedef int bar;
>>
>> struct foo {
>> bar bar;
>> };
>>
>
> Find the guy who wrote that code, and shoot him.
>
Ok.. that was my plan B. But since Mom and Dad always
told me that it is something you shouldn't do I tried
to find something else.
So is this kind of typdef and variable name mix up
forbidden by C++ or is it just g++ that barks at
me ?
Cheers
O.
--
[ See http://www.gotw.ca/resources/clcm.htm
for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]