From bug-request at octave dot org Tue Sep 7 19:39:29 2004 Subject: Re: CVS compile bug g++ 3.4.1 From: Paul Kienzle To: "John W. Eaton" Cc: David Bateman , bug@octave.org Date: Tue, 7 Sep 2004 20:38:31 -0400 As far as I can tell, round() is not part of the C++ standard. See for example, http://www.cplusplus.com/ref/cmath/ I've been using floor(x+0.5) - Paul On Sep 7, 2004, at 2:54 PM, John W. Eaton wrote: > On 7-Sep-2004, David Bateman wrote: > > | I get the following compile bug under g++ 3.4.1 > | > | oct-inttypes.h: In member function `octave_int& > octave_int::operator/=(const octave_int&)': > | oct-inttypes.h:289: error: there are no arguments to `round' that > depend on a template parameter, so a declaration of `round' must be > available > > Does the following patch help? > > jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------