Skip to content

Create zero initialization methods for messages #367

Closed

Description

@tfoote

In porting efforts we've run into several bugs where the zero initialized behavior is relied upon, causing bugs. Having a zero initialization method as a way to make porting less fragile would be valuable. And likely can be used in other cases when the optimization of using uninitialized constructors are not as important.

This is capturing the suggestion from @clalancette and @mikaelarguedas in ros2/geometry2#25

Activity

  1. mikaelarguedas commented on Aug 8, 2017

    @mikaelarguedas
    Member

    This should be eligible for the "hitlist". If not implementing these method, at least warn users and reflect on the design documents that the messages are not zero-initialized by default. (e.g. this suggests that default constructors do initialize the fields )

    @Karsten1987 FYI

  2. dirk-thomas commented on Aug 10, 2017

    @dirk-thomas
    Member

    @clalancette will look into this and come up with a design doc / proposal.

  3. added
    in progress
    on Aug 10, 2017
  4. clalancette commented on Sep 6, 2017

    @clalancette
    Contributor

    Closing this in favor of #393

  5. removed
    in progress
    on Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions