# HG changeset patch # User jwe # Date 1109741748 0 # Node ID 4515ad040dc7409cf3fdff867c25b796e6723324 # Parent 1278a2bc1527ebe1026fad61e819dd6e1a9b5de8 [project @ 2005-03-02 05:35:48 by jwe] diff -r 1278a2bc1527 -r 4515ad040dc7 ChangeLog --- a/ChangeLog Wed Mar 02 01:38:31 2005 +0000 +++ b/ChangeLog Wed Mar 02 05:35:48 2005 +0000 @@ -1,3 +1,8 @@ +2005-03-02 John W. Eaton + + * configure.in (OCTAVE_LOCAL_BUFFER): Use < T > instead of . + From Clinton Chee . + 2005-03-01 John W. Eaton * configure.in (AC_CONFIG_FILES): Remove libcruft/odessa/Makefile diff -r 1278a2bc1527 -r 4515ad040dc7 configure.in --- a/configure.in Wed Mar 02 01:38:31 2005 +0000 +++ b/configure.in Wed Mar 02 05:35:48 2005 +0000 @@ -29,7 +29,7 @@ EXTERN_CXXFLAGS="$CXXFLAGS" AC_INIT -AC_REVISION($Revision: 1.462 $) +AC_REVISION($Revision: 1.463 $) AC_PREREQ(2.57) AC_CONFIG_SRCDIR([src/octave.cc]) AC_CONFIG_HEADER(config.h) @@ -1405,13 +1405,23 @@ not delete[] and we need the latter to properly handle arrays allocated with new[size]. + Use < T > instead of to avoid problems if T is a template type + (say, foo) and the preprocessor fails to insert a space and + generates >. + #if defined (HAVE_DYNAMIC_AUTO_ARRAYS) + #define OCTAVE_LOCAL_BUFFER(T, buf, size) \ T buf[size] -#else */ + +#else + +*/ + #define OCTAVE_LOCAL_BUFFER(T, buf, size) \ - std::vector buf ## _vector (size); \ + std::vector< T > buf ## _vector (size); \ T *buf = &(buf ## _vector[0]) + /* #endif */ #if defined (__DECCXX)