Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes error: ‘optional’ in namespace ‘std’ does not name a template type #1251

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

vivekkiran
Copy link
Contributor

@vivekkiran vivekkiran commented Mar 7, 2024

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 header in /DigiDoc4-Client/client/Application.cpp fixes this issue.

Signed-off-by: Vivek Kiran Ballakur [email protected]

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.
@vivekkiran vivekkiran changed the title Added missing <optional> header Fixes error: ‘optional’ in namespace ‘std’ does not name a template type Mar 7, 2024
@kristelmerilain kristelmerilain merged commit 30281d1 into open-eid:master Mar 26, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants