C++ Logo


Advanced search

Subject: Re: [ub] What does "The function main shall not be used within a program" mean?
From: Gabriel Dos Reis (gdr_at_[hidden])
Date: 2014-01-22 11:32:28

> 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".

SG12 list run by herb.sutter at gmail.com