mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
make it compile on ubuntu 16.04
This commit is contained in:
parent
c26882897b
commit
4146a47809
2 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@
|
|||
#include <limits>
|
||||
#include <ctime>
|
||||
#include <future>
|
||||
#include <regex>
|
||||
|
||||
|
||||
#define TMPL_DIR "./templates"
|
||||
#define TMPL_PARIALS_DIR TMPL_DIR "/partials"
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
#include <iterator>
|
||||
#include <algorithm>
|
||||
#include <type_traits>
|
||||
|
||||
#include <regex>
|
||||
|
||||
/**
|
||||
* Some helper functions used in the example.
|
||||
|
@ -333,7 +333,7 @@ void chunks(Iterator begin,
|
|||
* regular expression
|
||||
*/
|
||||
inline string
|
||||
remove_bad_chars(string const& in_str, std::regex const& rgx = std::regex {"[^a-zA-Z0-9]"})
|
||||
remove_bad_chars(string const& in_str, std::regex const& rgx = std::regex ("[^a-zA-Z0-9]"))
|
||||
{
|
||||
return std::regex_replace(in_str, rgx, "");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue