From 542359605b933577a7a3cb0b7acfeb89a75e78e8 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 18 Jan 2009 18:52:59 +0000 Subject: [PATCH] Clarified the specs. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402817 --- dlib/array/array_sort_abstract.h | 3 ++- dlib/queue/queue_sort_abstract.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlib/array/array_sort_abstract.h b/dlib/array/array_sort_abstract.h index ddacca7ca..36f47e543 100644 --- a/dlib/array/array_sort_abstract.h +++ b/dlib/array/array_sort_abstract.h @@ -16,7 +16,8 @@ namespace dlib /*! REQUIREMENTS ON ARRAY_BASE - must be an implementation of array/array_kernel_abstract.h + - must be an implementation of array/array_kernel_abstract.h + - array_base::type must be a type with that is comparable via operator< POINTERS AND REFERENCES sort() may invalidate pointers and references to internal data. diff --git a/dlib/queue/queue_sort_abstract.h b/dlib/queue/queue_sort_abstract.h index 75a18cc36..ead9cc173 100644 --- a/dlib/queue/queue_sort_abstract.h +++ b/dlib/queue/queue_sort_abstract.h @@ -17,8 +17,8 @@ namespace dlib /*! REQUIREMENTS ON QUEUE_BASE - queue_base is instantiated with type T and - is an implementation of queue/queue_kernel_abstract.h + - is an implementation of queue/queue_kernel_abstract.h + - queue_base::type must be a type with that is comparable via operator< POINTERS AND REFERENCES TO INTERNAL DATA sort() may invalidate pointers and references to internal data.