Qualify global regexes as static const in main.
This commit is contained in:
parent
ca8a86d217
commit
f83f3759d3
|
@ -39,8 +39,8 @@
|
|||
|
||||
using namespace monicelli;
|
||||
|
||||
boost::regex NAME_RE("^(.+)\\.mc$");
|
||||
boost::regex MODULE_RE("^(.+)\\.mm$");
|
||||
static const boost::regex NAME_RE("^(.+)\\.mc$");
|
||||
static const boost::regex MODULE_RE("^(.+)\\.mm$");
|
||||
|
||||
int process(std::string const&, std::function<bool(std::ostream&, Program*)>);
|
||||
|
||||
|
|
Reference in New Issue
Block a user