I made a program on Linux, but now I want to make it compatible with Windows. So I compiled my libraries in Windows, created a Code::Blocks project, and starting adapting some functions and variables that don't suit to Windows.
But there is a function that I don't understand why it doesn't work, regex_replace(). #include doesn't give an error, and regex_match neither. Here is my function:
string str = "hey guys";
str = regex_replace(string str, regex("guys"), "girls");
And 'str' is now "hey girls".
But when I compile on Windows, it gives me this error: "no matching function for call to 'regex_replace'". I searched a little bit, but I didn't find anything interesting.
So what should I do? Thank you!
#include <regexp>? did you trystd::regex_replace?#include <regex>, notregexp.