diff options
Diffstat (limited to 'libbutl/regex.txx')
-rw-r--r-- | libbutl/regex.txx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbutl/regex.txx b/libbutl/regex.txx index aa845be..214d949 100644 --- a/libbutl/regex.txx +++ b/libbutl/regex.txx @@ -1,15 +1,16 @@ // file : libbutl/regex.txx -*- C++ -*- // license : MIT; see accompanying LICENSE file -LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason. +#include <locale> +#include <stdexcept> // invalid_argument + +namespace butl { - // Replace the regex match results using the format string. - // template <typename C> std::basic_string<C> regex_replace_match_results ( const std::match_results<typename std::basic_string<C>::const_iterator>& m, - const std::basic_string<C>& fmt) + const C* fmt, std::size_t n) { using namespace std; @@ -60,7 +61,6 @@ LIBBUTL_MODEXPORT namespace butl //@@ MOD Clang needs this for some reason. } }; - size_t n (fmt.size ()); for (size_t i (0); i < n; ++i) { C c (fmt[i]); |