diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-04 22:50:09 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-04 22:50:09 +0200 |
| commit | 92d4720095f1164fec897d56ae99bb6db97e45a6 (patch) | |
| tree | 72031db1b6de6945184b8df29bdb214949afe206 /include/winapi/process.hpp | |
| parent | upgrade to std::string_view (diff) | |
| download | winapi-common-92d4720095f1164fec897d56ae99bb6db97e45a6.tar.gz winapi-common-92d4720095f1164fec897d56ae99bb6db97e45a6.zip | |
upgrade to std::optional
Diffstat (limited to '')
| -rw-r--r-- | include/winapi/process.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/winapi/process.hpp b/include/winapi/process.hpp index 92d9da5..4d9ca28 100644 --- a/include/winapi/process.hpp +++ b/include/winapi/process.hpp @@ -10,11 +10,10 @@ #include "process_io.hpp" #include "resource.hpp" -#include <boost/optional.hpp> - #include <windows.h> #include <cstdint> +#include <optional> #include <string> #include <utility> @@ -31,7 +30,7 @@ struct ProcessParameters { explicit ProcessParameters(const CommandLine& cmd_line) : cmd_line{cmd_line} {} CommandLine cmd_line; - boost::optional<process::IO> io; + std::optional<process::IO> io; ConsoleCreationMode console_mode = ConsoleNew; }; @@ -45,7 +44,7 @@ struct ShellParameters : ProcessParameters { explicit ShellParameters(const CommandLine& cmd_line) : ProcessParameters{cmd_line} {} - boost::optional<std::string> verb; + std::optional<std::string> verb; }; /** |
