Skip to content

Commit

Permalink
Added missing <optional> header (#1251)
Browse files Browse the repository at this point in the history
I am getting this error in EndeavorOS/Arch Linux when running  cmake --build build

/home/vivek/Downloads/DigiDoc4-Client/client/Application.cpp:296:14: error: ‘optional’ in namespace ‘std’ does not name a template type
  296 |         std::optional<std::string> log;
      |              ^~~~~~~~
/home/vivek/Downloads/DigiDoc4-Client/client/Application.cpp:76:1: note: ‘std::optional’ is defined in header ‘<optional>’; did you forget to ‘#include <optional>’?
   75 | #include <QtWidgets/QToolTip>
  +++ |+#include <optional>
   76 | 


Adding  missing <optional> header in /DigiDoc4-Client/client/Application.cpp fixes this issue.
  • Loading branch information
vivekkiran authored Mar 26, 2024
1 parent 9f66c97 commit 30281d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class MacMenuBar {};
#include "effects/Overlay.h"

#include <common/Configuration.h>
#include <optional>

#include <digidocpp/Container.h>
#include <digidocpp/XmlConf.h>
Expand Down

0 comments on commit 30281d1

Please sign in to comment.