B
benben
I tried to do the following:
bind2nd(ptr_fun(&tolower<char>), locale());
But was hit with errors claiming some where deep down the STL library
some code is trying to take a reference to a reference type.
I guess that is because the std::tolower<>() template takes a reference
to a locale as its second parameter then bind2nd tries to take the
reference of that parameter. But how to I circumvent this?
Regards,
Ben
bind2nd(ptr_fun(&tolower<char>), locale());
But was hit with errors claiming some where deep down the STL library
some code is trying to take a reference to a reference type.
I guess that is because the std::tolower<>() template takes a reference
to a locale as its second parameter then bind2nd tries to take the
reference of that parameter. But how to I circumvent this?
Regards,
Ben