hanickadot / compile-time-regular-expressions

Compile Time Regular Expression in C++
https://twitter.com/hankadusikova
Apache License 2.0
3.22k stars 177 forks source link

MinGW Clang: ctre::regular_expression not found #280

Closed Hedgehogo closed 1 year ago

Hedgehogo commented 1 year ago

The MinGW Clang w64 9.0 compiler gives a similar error.

{...}/compile_time_regex/include/ctre/literals.hpp:71:16: error: no member named 'regular_expression' in namespace 'ctre'
                return ctre::regular_expression(re());
                       ~~~~~~^

I don't even need the function of literals, so as a fix I could just disable this part of the code. (It's located inside CTRE_ENABLE_LITERALS)

Hedgehogo commented 1 year ago

Problem solved, you should have just included instead of <ctre\functions.hpp>