Skip to content

Fix[ntsa::Timestamp]: less operator - #401

Open
678098 wants to merge 1 commit into
bloomberg:mainfrom
678098:patch-22
Open

Fix[ntsa::Timestamp]: less operator#401
678098 wants to merge 1 commit into
bloomberg:mainfrom
678098:patch-22

Conversation

@678098

@678098 678098 commented May 14, 2026

Copy link
Copy Markdown
Contributor

No description provided.


if (other.d_id < d_id) {
return true;
return false;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This conflicts with

    if (d_id < other.d_id) {
        return true;
    }

making possible to have A.less(B) == true and B.less(A) == true at the same time.

This should be false similar to

    if (other.d_type < d_type) {
        return false;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant