As I know, there are two ways to declare a constant variable that is visible in only one file:
static const int VARIABLE = 1
namespace { const int VARIABLE = 1; }
And what's the difference?
Since he is const, both have an internal connection, and there is no difference. Therefore, we consider a more interesting case when it is not const.
const
In this case, in practice, there are few differences.
, , ; , , .
Source: https://habr.com/ru/post/1540370/More articles:Date difference formatted in days. - sql-serverDoes MySQL store IP as an int to improve performance? - databaseOrientation does not change after pressing (push segue) a View of UINavigationViewController - iosAdd vertical and horizontal dividers between inline elements - htmlSpring - "context: property-placeholder" - приоритет собственности - javaWhat is the easiest way to trim the values of a string []? - stringwrite.table with different number formatting for each column - formattinghome directory not created with custom resource added with chef - linuxIdiom for container classes - javaCan I use pa_monad to provide an η extension? - polymorphismAll Articles