This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Programming question--Reference parameters. Thanks


Hi all:
    I am using the arm-elf-gcc, I wonder whether I can use reference
parameter in function. I tried this:

void fun1(int &a)
{
// do somthing here

}

but seems the compiler can not recognize '&' here and report an error:
"parse error before '&' token"

so is reference parameter is not supported in arm-elf-gcc ?

Thanks a lot.


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]