BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000320 [uClibc++] Other minor always 07-03-05 12:02 08-02-05 20:13
Reporter tommi View Status public  
Assigned To gkajmowi
Priority normal Resolution fixed  
Status closed   Product Version 0.1.11
Summary 0000320: ambiguous basic_string::compare variants
Description  These
methods are not ambiguous if called with 3 parameters:
        int compare(size_type pos1, size_type n1, const basic_string& str) const;
        int compare(size_type pos1, size_type n1, const basic_string& str,
                size_type pos2=0, size_type n2=npos) const;

I think the default values are not allowed. I have no c++-standard here, but I
can find in sgi-stl-documentation these variants:
int compare(size_type pos, size_type n, const basic_string& s) const;
int compare(size_type pos, size_type n, const basic_string& s, size_type pos1,
size_type n1) const;

no default values at all.
Additional Information
Attached Files

- Relationships

- Notes
(0000266)
gkajmowi
07-04-05 10:33

Fix now in SVN. I removed the three arguement version. The 5-arguement version with default values will work just as well, and cut down on the amount of code generated.
 

- Issue History
Date Modified Username Field Change
07-03-05 12:02 tommi New Issue
07-04-05 10:33 gkajmowi Status assigned => resolved
07-04-05 10:33 gkajmowi Fixed in Version  => 0.1.12
07-04-05 10:33 gkajmowi Resolution open => fixed
07-04-05 10:33 gkajmowi Note Added: 0000266
08-02-05 20:13 andersen Status resolved => closed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker