diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-03 14:43:44 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-04 16:44:41 -0700 |
| commit | 1c1423014f5aab77339ebcb261e1d33e3106ec5d (patch) | |
| tree | 61d1e76d550cecefbc4a31b4803137d9cbcf0c43 /toolsrc/src/opt_bool.cpp | |
| parent | 830a4d97d470dad6ca4a27ef1eecce17057fa432 (diff) | |
| download | vcpkg-1c1423014f5aab77339ebcb261e1d33e3106ec5d.tar.gz vcpkg-1c1423014f5aab77339ebcb261e1d33e3106ec5d.zip | |
opt_bool->OptBool
Diffstat (limited to 'toolsrc/src/opt_bool.cpp')
| -rw-r--r-- | toolsrc/src/opt_bool.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/toolsrc/src/opt_bool.cpp b/toolsrc/src/opt_bool.cpp deleted file mode 100644 index b4642f273..000000000 --- a/toolsrc/src/opt_bool.cpp +++ /dev/null @@ -1,29 +0,0 @@ -#include "pch.h" -#include "opt_bool.h" -#include "vcpkg_Checks.h" - -namespace vcpkg::opt_bool -{ - static const std::string UNSPECIFIED_NAME = "unspecified"; - static const std::string ENABLED_NAME = "enabled"; - static const std::string DISABLED_NAME = "disabled"; - type parse(const std::string& s) - { - if (s == UNSPECIFIED_NAME) - { - return opt_bool_t::UNSPECIFIED; - } - - if (s == ENABLED_NAME) - { - return opt_bool_t::ENABLED; - } - - if (s == DISABLED_NAME) - { - return opt_bool_t::DISABLED; - } - - Checks::exit_with_message(VCPKG_LINE_INFO, "Could not convert string [%s] to opt_bool", s); - } -} |
