Skip to content

[Building/Packaging] ‘std::optional’ has not been declared - Linux  #1092

@sebojolais

Description

@sebojolais
  • With the dev branch,
  • The Snap to grid PR Feat: snap to grid #1013 introduced std::optional in UBGraphicsScene.h
  • But it is not declared
  • Have a look below the error message:

src/domain/UBGraphicsScene.h:251:69: error: ‘std::optional’ has not been declared

  • On Ubuntu 22.04 (KDE Neon)
  • With GCC and QT5 version that come from the default settings of the distribution.

-> A solution : if I add #include <optional> at the beginning of UBGraphicsScene.h, the building process finishes as expected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions