From: Jonathan Wakely Date: Tue, 24 Aug 2004 08:46:15 +0000 (+0100) Subject: trouble.texi (C++ misunderstandings): Fix example code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=748fa2945501ba05567634ebf81b57dfe990504d;p=gcc.git trouble.texi (C++ misunderstandings): Fix example code. 2004-08-24 Jonathan Wakely * doc/trouble.texi (C++ misunderstandings): Fix example code. From-SVN: r86470 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6a1db2c21e..00888c0e992 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-08-24 Jonathan Wakely + + * doc/trouble.texi (C++ misunderstandings): Fix example code. + 2004-08-24 Nick Clifton * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate defintion diff --git a/gcc/doc/trouble.texi b/gcc/doc/trouble.texi index 39273c33e02..a546183737c 100644 --- a/gcc/doc/trouble.texi +++ b/gcc/doc/trouble.texi @@ -1064,7 +1064,7 @@ forces it to remain until the end of the scope of the name. For example: @smallexample -string& tmp = strfunc (); +const string& tmp = strfunc (); charfunc (tmp.c_str ()); @end smallexample