ridiculousfish / cdecl-blocks

The venerable cdecl, with Apple blocks support
965 stars 72 forks source link

rvalue reference is recognized as "reference to reference" #30

Open ch1y0q opened 2 years ago

ch1y0q commented 2 years ago

It seems that rvalue reference syntax is not supported.

int&& foo

declares a rvalue reference of an int. But it is parsed as "declare foo as reference to reference to int" by cdecl. There is no such thing as "reference to reference".

Some info about rvalue reference: https://stackoverflow.com/questions/5590978/reference-of-reference-in-c