manabreak
manabreak

Reputation: 5597

Semicolon inside function parentheses?

I was browsing through Psycle source code, and this line caught my attention:

bool user_choose_dialog(HWnd const window_handle,
                        format const * const source_format = 0,
                        format const * const proposed_format = 0;
                        std::string const & caption = "");

As you can see, there's a semicolon in the parameter list. I noticed there was an old question about this, and the answer was that the semicolon was used for forward declaration. However, I can't see a forward declaration in this situation. What's the meaning of that semicolon there? Is it something meaningful and functional, or is it a typo in the source?

Upvotes: 0

Views: 293

Answers (1)

ForEveR
ForEveR

Reputation: 55887

format const * const proposed_format = 0;

It's simply misprint, I think. It should never compile.

Upvotes: 5

Related Questions