From: Jonathan Wakely Date: Sun, 29 Aug 2004 14:39:25 +0000 (+0100) Subject: trouble.texi (C++ misunderstandings): Fix example code. X-Git-Tag: releases/gcc-3.3.5~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df9f60092d2fc68ffc6e1890145882c5f8fb93af;p=thirdparty%2Fgcc.git trouble.texi (C++ misunderstandings): Fix example code. 2003-08-29 Jonathan Wakely * doc/trouble.texi (C++ misunderstandings): Fix example code. From-SVN: r86725 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3fadd5ea96d5..0c6e38905821 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-08-29 Jonathan Wakely + + * doc/trouble.texi (C++ misunderstandings): Fix example code. + 2004-08-26 Richard Henderson PR target/15718 diff --git a/gcc/doc/trouble.texi b/gcc/doc/trouble.texi index a7e42000bb72..96057a1d2637 100644 --- a/gcc/doc/trouble.texi +++ b/gcc/doc/trouble.texi @@ -943,7 +943,7 @@ forces it to remain until the end of the scope of the name. For example: @example -string& tmp = strfunc (); +const string& tmp = strfunc (); charfunc (tmp.c_str ()); @end example