Use an unnamed namespace instead of a static to provide a file-local scope.

This commit is contained in:
W. Eric Norum
2000-12-21 19:42:03 +00:00
parent 8ea97a12b5
commit 3e09b0fd52
+1 -1
View File
@@ -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