Use an unnamed namespace instead of a static to provide a file-local scope.
This commit is contained in:
1 parent
8ea97a12b5
commit
3e09b0fd52
1 file changed
+1
-1
@@ -45,7 +45,7 @@ struct Cstring_cmp {
|
||||
/*
|
||||
* The table of commands
|
||||
*/
|
||||
static map<const char *,IoccrfFunc,Cstring_cmp> commands;
|
||||
namespace { map<const char *,IoccrfFunc,Cstring_cmp> commands; }
|
||||
|
||||
/*
|
||||
* Register a command
|
||||
|
||||
Reference in new issue
Block a user