Menu

#66 Classdesc parses default argument incorrectly when -overload slected

3.x
open
nobody
None
2019-10-18
2019-10-18
No

struct bar
{
void bar1(const char* x=",");
};

Produces the following when -overload is passed:

void(::bar::*TmpMemPtr_bar11)(const char * x ," )=&::bar::bar1;

Discussion

  • High Performance Coder

    The problem is probably the quoted comma is being interpreted as an argument separator

     
  • High Performance Coder

    Workaround is to overload the functions instead of using a default argument.

     

Anonymous
Anonymous

Add attachments
Cancel