According to the standard in 3.6.1/3, it’s not :
The function
main
shall not be used
(3.2) within a program
The definition of used being :
An object or non-overloaded
function is used if its name appears in a potentially-evaluated expression.
According to the standard in 3.6.1/3, it’s not :
The function
main
shall not be used
(3.2) within a program
The definition of used being :
An object or non-overloaded
function is used if its name appears in a potentially-evaluated expression.