mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
F.46: add note regarding the return of main (see #1896)
This commit is contained in:
@@ -3749,6 +3749,7 @@ Declaring `main` (the one global `main` of a program) `void` limits portability.
|
|||||||
##### Note
|
##### Note
|
||||||
|
|
||||||
We mention this only because of the persistence of this error in the community.
|
We mention this only because of the persistence of this error in the community.
|
||||||
|
Note that despite its non-void return type, the main function does not require an explicit return statement.
|
||||||
|
|
||||||
##### Enforcement
|
##### Enforcement
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user