]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/configuration/sgconfig/parser_admins.h
Fix build on Darwin.
[stg.git] / projects / stargazer / plugins / configuration / sgconfig / parser_admins.h
index efad0d63d7510144835fe87fadb739002b5e0aad..bad37427cac6864f3780d1d8d09c193f89bfea04 100644 (file)
 #include "parser.h"
 
 #include "stg/common.h"
-#include "stg/optional.h"
 
 #include <string>
+#include <optional>
 
 namespace STG
 {
 
 struct Admins;
-struct Admin;
+class Admin;
 
 namespace PARSER
 {
@@ -138,8 +138,8 @@ class CHG_ADMIN: public BASE_PARSER
 
     private:
         std::string login;
-        Optional<std::string> password;
-        Optional<std::string> privAsString;
+        std::optional<std::string> password;
+        std::optional<std::string> privAsString;
         Admins & m_admins;
 
         void CreateAnswer() override;