From a2b092ab7e2b00a1090651b6ec9f21fa2b4bfb9d Mon Sep 17 00:00:00 2001 From: Alan Woodland Date: Mon, 16 May 2016 21:24:11 +0100 Subject: [PATCH] Don't expose sort() to avoid adding dependencies on all std::list users --- Lib/java/std_list.i | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/java/std_list.i b/Lib/java/std_list.i index f49b11826..932980d67 100644 --- a/Lib/java/std_list.i +++ b/Lib/java/std_list.i @@ -44,7 +44,9 @@ namespace std { // Possible bug: jint != size_type jint size () const; - void sort(); + + // Although sort() is nice it makes operator<() mandatory which it probably shouldn't be + //void sort(); // Only for helping implement listIterator iterator begin();