Mercurial > hg > octave-nkf
changeset 448:24ef480d8571
[project @ 1994-06-03 20:52:47 by jwe]
author | jwe |
---|---|
date | Fri, 03 Jun 1994 20:52:47 +0000 |
parents | 370fabbab42b |
children | 3cef0ce5dd7d |
files | liboctave/Array.h |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Array.h +++ b/liboctave/Array.h @@ -24,14 +24,16 @@ #if !defined (octave_Array_h) #define octave_Array_h 1 -#include "lo-error.h" +#include <assert.h> -extern "C++" { +#include "lo-error.h" #if defined (__GNUG__) && defined (USE_EXTERNAL_TEMPLATES) #pragma interface #endif +extern "C++" { + // Classes we declare. template <class T> class ArrayRep; @@ -259,7 +261,7 @@ inline operator T () const { - if (object) + if (object && i == j) return object->get (i); else {