Re: Possible bug in the string constructor suggestion

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Thu, 10 Jul 2008 17:09:54 +0200


Hi Antonio,

this is now fixed in the trunk (+append, assign,...). Thanks for reporting!

Cheers, Axel.

On 2008-07-09 17:45, Antonio Bulgheroni wrote:
> Dear ROOTers,
>
> I think I've hit a bug in the STL string constructor suggestion. If
> from the root command line I type
>
> string myString(
>
> and then type tab, I got the following possible completions :
>
> string string()
> string string(const string& str)
> string string(const string& str, size_t pos, size_t n)
> string string(const char* s, size_t n)
> string string(const char* s)
> string string(char c, size_t rep)
>
> In particular I'm interested in the last one, but this is not compliant
> with any C++ standard ctors. The correct constructor should be
> string(size_t rep, char c) and indeed using the proposed constructor
> results in a misbehavior as shown in the attached example.
>
> Using ROOT v5.20.00 on a linux box
>
> Thanks for helping,
>
> Antonio
>
> --------------------------------------
> Antonio Bulgheroni, PhD
> http://unico-lab.blogspot.com
>
> "There are 10 kinds of people. Those that understand binary and those
> that don't."
>
Received on Thu Jul 10 2008 - 17:09:59 CEST

This archive was generated by hypermail 2.2.0 : Thu Jul 10 2008 - 23:50:02 CEST