C++ Logo

sg12

Advanced search

Re: [ub] What does "The function main shall not be used within a program" mean?

From: Gabriel Dos Reis <gdr_at_[hidden]>
Date: Wed, 22 Jan 2014 17:32:28 +0000
> On Jan 21, 2014, at 5:58 PM, "David Krauss" <david_work_at_[hidden]> wrote:
>
>
>> On Jan 22, 2014, at 9:08 AM, Stephen Clamage <stephen.clamage_at_[hidden]> wrote:
>>
>> If you could declare
>
> Is the intent to prohibit forward declaration? This would seem to be the difference between use and ODR-use in the original question.

I don't see what difference it would make. But I am curious: what would declare main for?

Also keep in mind that the word ODR-use is a fairly recent invention. Before that, we just said "use".

Received on 2014-01-22 18:32:38