Skip to content

Add fmt formatter for TypeSafeIndex and deprecate operator<< for LoadYamlOptions and yaml::Node#24075

Merged
jwnimmer-tri merged 1 commit intoRobotLocomotion:masterfrom
j4yyousi:pr10-deprecate-LoadYamlOptions-yamlNode-operator<<
Feb 9, 2026
Merged

Add fmt formatter for TypeSafeIndex and deprecate operator<< for LoadYamlOptions and yaml::Node#24075
jwnimmer-tri merged 1 commit intoRobotLocomotion:masterfrom
j4yyousi:pr10-deprecate-LoadYamlOptions-yamlNode-operator<<

Conversation

@j4yyousi
Copy link
Copy Markdown
Contributor

@j4yyousi j4yyousi commented Feb 6, 2026

Towards #17742. @jwnimmer-tri, for review please, thanks!


This change is Reviewable

@jwnimmer-tri jwnimmer-tri self-assigned this Feb 9, 2026
@jwnimmer-tri jwnimmer-tri added release notes: newly deprecated This pull request contains new deprecations status: single reviewer ok https://drake.mit.edu/reviewable.html labels Feb 9, 2026
Copy link
Copy Markdown
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

:lgtm: +(release notes: newly deprecated) +(status: single reviewer ok)

@jwnimmer-tri reviewed 8 files and all commit messages, and made 2 comments.
Reviewable status: 1 unresolved discussion.


common/type_safe_index.h line 582 at r1 (raw file):

DRAKE_FORMATTER_AS(typename Tag, drake, TypeSafeIndex<Tag>, x,
                   std::to_string(x))

BTW For readability, I think it would be nice to indicate the specific conversion that's happening here.

Suggestion:

std::to_string(int{x})

@j4yyousi j4yyousi force-pushed the pr10-deprecate-LoadYamlOptions-yamlNode-operator<< branch from c296ef8 to e12a632 Compare February 9, 2026 18:15
Copy link
Copy Markdown
Contributor Author

@j4yyousi j4yyousi left a comment

Choose a reason for hiding this comment

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

@j4yyousi resolved 1 discussion.
Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignee jwnimmer-tri(platform).

Copy link
Copy Markdown
Collaborator

@jwnimmer-tri jwnimmer-tri left a comment

Choose a reason for hiding this comment

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

@jwnimmer-tri reviewed 1 file and all commit messages.
Reviewable status: :shipit: complete! all discussions resolved, LGTM from assignee jwnimmer-tri(platform).

@jwnimmer-tri jwnimmer-tri merged commit 99b81d5 into RobotLocomotion:master Feb 9, 2026
10 checks passed
j4yyousi added a commit to j4yyousi/drake that referenced this pull request Mar 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release notes: newly deprecated This pull request contains new deprecations status: single reviewer ok https://drake.mit.edu/reviewable.html

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants