changeset 12302:1b71befc2f40 release-3-4-x

oct-parse.yy (class stdio_stream_reader): disallow copying
author Pascal Dupuis <Pascal.Dupuis@uclouvain.be>
date Sun, 30 Jan 2011 04:38:10 -0500
parents 3eb4049b5393
children 2c35dfd641ff
files src/ChangeLog src/oct-parse.yy
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-30  Pascal Dupuis  <Pascal.Dupuis@worldonline.be>
+
+	* oct-parse.yy (class stdio_stream_reader): Disallow copying.
+
 2011-01-30  John W. Eaton  <jwe@octave.org>
 
 	* graphics.cc (gnuplot_toolkit::redraw): Call __gnuplot_drawnow__,
--- a/src/oct-parse.yy
+++ b/src/oct-parse.yy
@@ -3325,6 +3325,12 @@
 
 private:
   FILE *f;
+
+  // No copying!
+
+  stdio_stream_reader (const  stdio_stream_reader&);
+
+  stdio_stream_reader & operator = (const  stdio_stream_reader&);
 };
 
 static bool