Opened 13 years ago

Last modified 13 years ago

#7948 closed bug

Bogus prototype for string::compare — at Initial Version

Reported by: pulkomandy Owned by: nobody
Priority: normal Milestone: R1
Component: System Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

I noticed the C++ standard has :

int String::compare(size_t pos1, size_t n1, const char* s) const;

While Haiku std/bastring.h declares :

int compare(const char* s, size_t pos1, size_t n1) const;

Not sure if this is BeOS legacy, but it's a bit annoying when trying to write portable C++ code.

Change History (0)

Note: See TracTickets for help on using tickets.