Here is the code that's causing me some issues, trying to build and getting the error:
'unary_function base class undefined' and 'unary_function' is not a member of std'
std::unary_function has been removed in C++17 so what is an equivalent version?
#include <functional>
struct path_sep_comp: public std::unary_function<tchar, bool>
{
path_sep_comp () {}
bool
operator () (tchar ch) const
{
#if defined (_WIN32)
return ch == LOG4CPLUS_TEXT ('\\') || ch == LOG4CPLUS_TEXT ('/');
#else
return ch == LOG4CPLUS_TEXT ('/');
#endif
}
};