Skip to content

nullptr context in standard library #660

@codygunton

Description

@codygunton

Null pointers are uses as the default context (pointer to a builder). This was a frequent source of issues when building the circuit simulator because we'd to access, for example, the failed state of the composer and get a segfault. Is there any subtle logic around the use of the nullptr context when we're constructing circuit constants? I think it would be best to always initialize the context and git rid of any special nullptr logic that exists in favor of something more explicit, and something that does not conflict with the strategy I took for the simlator.

Metadata

Metadata

Assignees

No one assigned

    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