Skip to content

Function with default parameter doesn't get it's prototype in *.h header file. #4048

Closed
@obiwan-bartek

Description

@obiwan-bartek

When you write a function with at least one parameter with default value
eg.

void foo(int a, int b = 0)
{
}

it does not gets generated it's prototype in header file, which results in an unreferenced calls in project to that function. When you remove the default parameter

 = 0

the prototype shows in header file as expected.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions