aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/opt_bool.h
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-04-03 14:43:44 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2017-04-04 16:44:41 -0700
commit1c1423014f5aab77339ebcb261e1d33e3106ec5d (patch)
tree61d1e76d550cecefbc4a31b4803137d9cbcf0c43 /toolsrc/include/opt_bool.h
parent830a4d97d470dad6ca4a27ef1eecce17057fa432 (diff)
downloadvcpkg-1c1423014f5aab77339ebcb261e1d33e3106ec5d.tar.gz
vcpkg-1c1423014f5aab77339ebcb261e1d33e3106ec5d.zip
opt_bool->OptBool
Diffstat (limited to 'toolsrc/include/opt_bool.h')
-rw-r--r--toolsrc/include/opt_bool.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/toolsrc/include/opt_bool.h b/toolsrc/include/opt_bool.h
deleted file mode 100644
index 06642a399..000000000
--- a/toolsrc/include/opt_bool.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#pragma once
-
-#include <string>
-#include <map>
-
-namespace vcpkg::opt_bool
-{
- enum class type
- {
- UNSPECIFIED = 0,
- ENABLED,
- DISABLED
- };
-
- type parse(const std::string& s);
-
- template <class T>
- type from_map(const std::map<T, std::string>& map, const T& key)
- {
- auto it = map.find(key);
- if (it == map.cend())
- {
- return type::UNSPECIFIED;
- }
-
- return parse(*it);
- }
-}
-
-namespace vcpkg
-{
- using opt_bool_t = opt_bool::type;
-} \ No newline at end of file