Mercurial > hg > octave-nkf
diff src/ov-fcn-handle.h @ 4967:0355f2f7d193
[project @ 2004-09-07 15:09:14 by jwe]
author | jwe |
---|---|
date | Tue, 07 Sep 2004 15:09:14 +0000 |
parents | cd58733c326b |
children | 352d228d409b |
line wrap: on
line diff
--- a/src/ov-fcn-handle.h +++ b/src/ov-fcn-handle.h @@ -49,8 +49,14 @@ octave_fcn_handle (const octave_value& f, const std::string& n) : fcn (f), nm (n) { } + octave_fcn_handle (const octave_fcn_handle& fh) + : octave_base_value (fh), fcn (fh.fcn), nm (fh.nm) { } + ~octave_fcn_handle (void) { } + octave_value *clone (void) const { return new octave_fcn_handle (*this); } + octave_value *empty_clone (void) const { return new octave_fcn_handle (); } + octave_value subsref (const std::string&, const std::list<octave_value_list>&) { @@ -79,12 +85,6 @@ private: - // No copying! - - octave_fcn_handle (const octave_fcn_handle& fh); - - octave_fcn_handle& operator = (const octave_fcn_handle& fh); - DECLARE_OCTAVE_ALLOCATOR DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA