Skip to content

Bug with unwrapping optionals #54

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions