Fix compatibility with C++17.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/23/head
Slávek Banko 7 months ago
parent 9232c032ad
commit d4cf702259
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -239,7 +239,7 @@ private:
PtrVector<EntryGroup> m_groups; PtrVector<EntryGroup> m_groups;
}; };
class EntryCmp : public std::binary_function<EntryPtr, EntryPtr, bool> { class EntryCmp : public std::function<bool(EntryPtr, EntryPtr)> {
public: public:
EntryCmp(const TQString& field) : m_field(field) {} EntryCmp(const TQString& field) : m_field(field) {}

@ -106,8 +106,9 @@ std::string table::make()
cell_def_2= cell_def_2=
std::find_if((*span_row)->CellDefs->begin(), std::find_if((*span_row)->CellDefs->begin(),
(*span_row)->CellDefs->end(), (*span_row)->CellDefs->end(),
std::bind2nd( std::bind(
std::mem_fun(&table_cell_def::right_equals), std::mem_fn(&table_cell_def::right_equals),
std::placeholders::_1,
(*cell_def)->Right)); (*cell_def)->Right));
if (cell_def_2==(*span_row)->CellDefs->end()) if (cell_def_2==(*span_row)->CellDefs->end())
break; break;
@ -157,8 +158,9 @@ std::string table::make()
cell_def_2= cell_def_2=
std::find_if((*row2)->CellDefs->begin(), std::find_if((*row2)->CellDefs->begin(),
(*row2)->CellDefs->end(), (*row2)->CellDefs->end(),
std::bind2nd( std::bind(
std::mem_fun(&table_cell_def::right_equals), std::mem_fn(&table_cell_def::right_equals),
std::placeholders::_1,
left)); left));
if (cell_def_2!=(*row2)->CellDefs->end()) if (cell_def_2!=(*row2)->CellDefs->end())
{ {
@ -167,8 +169,9 @@ std::string table::make()
cell_def_2= cell_def_2=
std::find_if((*row2)->CellDefs->begin(), std::find_if((*row2)->CellDefs->begin(),
(*row2)->CellDefs->end(), (*row2)->CellDefs->end(),
std::bind2nd( std::bind(
std::mem_fun(&table_cell_def::left_equals), std::mem_fn(&table_cell_def::left_equals),
std::placeholders::_1,
right)); right));
if (cell_def_2!=(*row2)->CellDefs->end()) if (cell_def_2!=(*row2)->CellDefs->end())
{ {

Loading…
Cancel
Save