From 03cf41d9b015fab3d30f98b50923d0c296fa9824 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= <slavek.banko@axis.cz>
Date: Sun, 14 Apr 2024 18:23:45 +0200
Subject: Fix compatibility with C++17.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
---
 kghostview/kgvdocument.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kghostview/kgvdocument.cpp b/kghostview/kgvdocument.cpp
index c08b68f1..ec70944d 100644
--- a/kghostview/kgvdocument.cpp
+++ b/kghostview/kgvdocument.cpp
@@ -618,7 +618,7 @@ bool KGVDocument::savePages( const TQString& saveFileName,
 	PageList normedPageList;
 	transform( pageList.begin(), pageList.end(),
 	           back_inserter( normedPageList ),
-	           bind2nd( minus<int>(), minPage - 1 ) );
+	           bind( minus<int>(), std::placeholders::_1, minPage - 1 ) );
 	
 	// Finally select the desired pages from the converted file.
 	psCopyDoc( psSaveFile.name(), saveFileName, normedPageList );
-- 
cgit v1.2.1