Mercurial > hg > octave-jordi
diff liboctave/oct-sort.h @ 12122:f4689107dd8c
Explicitly disallow copying in some classes.
author | Pascal Dupuis <Pascal.Dupuis@uclouvain.be> |
---|---|
date | Sat, 22 Jan 2011 02:21:52 -0500 (2011-01-22) |
parents | 12df7854fa7c |
children | 72c96de7a403 |
line wrap: on
line diff
--- a/liboctave/oct-sort.h +++ b/liboctave/oct-sort.h @@ -218,6 +218,12 @@ // and keeping all the info explicit simplifies the code. octave_idx_type n; struct s_slice pending[MAX_MERGE_PENDING]; + + // No copying! + + MergeState (const MergeState&); + + MergeState& operator = (const MergeState&); }; compare_fcn_type compare; @@ -322,6 +328,12 @@ void nth_element (T *data, octave_idx_type nel, octave_idx_type lo, octave_idx_type up, Comp comp); + + // No copying! + + octave_sort (const octave_sort&); + + octave_sort& operator = (const octave_sort&); }; template <class T>