Skip to content

Bug with unwrapping optionals #54

@cuie23

Description

@cuie23

This line in c3.cc is intended to check the value of a std::optional, but as written it checks whether the value is there or not, and not the boolean itself. Changing that line to if (options_.penalize_input_change.value_or(false)) { or something similar should fix it, just safely unwrapping the optional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions