Qualify global regexes as static const in main.

This commit is contained in:
Stefano Sanfilippo 2015-03-10 21:09:22 +01:00
parent ca8a86d217
commit f83f3759d3

View File

@ -39,8 +39,8 @@
using namespace monicelli; using namespace monicelli;
boost::regex NAME_RE("^(.+)\\.mc$"); static const boost::regex NAME_RE("^(.+)\\.mc$");
boost::regex MODULE_RE("^(.+)\\.mm$"); static const boost::regex MODULE_RE("^(.+)\\.mm$");
int process(std::string const&, std::function<bool(std::ostream&, Program*)>); int process(std::string const&, std::function<bool(std::ostream&, Program*)>);