From 4146a478097d70531867fdeef5502ffe16f6557d Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Wed, 20 Dec 2017 08:40:09 +0800 Subject: [PATCH] make it compile on ubuntu 16.04 --- src/page.h | 2 +- src/tools.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/page.h b/src/page.h index 904f107..43852d3 100644 --- a/src/page.h +++ b/src/page.h @@ -30,7 +30,7 @@ #include #include #include -#include + #define TMPL_DIR "./templates" #define TMPL_PARIALS_DIR TMPL_DIR "/partials" diff --git a/src/tools.h b/src/tools.h index ad185c1..ba4d153 100644 --- a/src/tools.h +++ b/src/tools.h @@ -31,7 +31,7 @@ #include #include #include - +#include /** * 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, ""); }