I'm trying to utilize the following answer: String To Lower/Upper in C++ but I'm using C++17, which means the answer is deprecated.
Replacing bind1st
with bind
was trivial, now I'd like to replace mem_fun
with mem_fn
, but for some reason it's not so simple for me.
I tried the following replacement:
auto greet = std::mem_fn<wchar_t(wchar_t)>(&ctype<wchar_t>::toupper);
Which gives me the "no matching overloaded function found" error. Why? How could I solve it if I wanted to stick to std::transform
?