Project

General

Profile

Actions

Bug #2445

closed

name::Component::compare return value is not guaranteed

Added by Junxiao Shi about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Base
Target version:
Start date:
01/28/2015
Due date:
% Done:

100%

Estimated time:

Description

name::Component::compare documentation defines its return value to be either -1, 0, or 1.

Its implementation contains return std::memcmp(....

std::memcmp returns either "negative value", 0, or "positive value", where "negative value" isn't guaranteed to be -1, and "positive value" isn't guaranteed to be 1.

The result would be compiler dependent.

Actions

Also available in: Atom PDF