From df9f60092d2fc68ffc6e1890145882c5f8fb93af Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Sun, 29 Aug 2004 15:39:25 +0100 Subject: [PATCH] trouble.texi (C++ misunderstandings): Fix example code. 2003-08-29 Jonathan Wakely * doc/trouble.texi (C++ misunderstandings): Fix example code. From-SVN: r86725 --- gcc/ChangeLog | 4 ++++ gcc/doc/trouble.texi | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.47.2