diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-07-26 16:25:24 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-07-26 16:25:24 -0700 |
| commit | 06597edfb7e47ff16c60c6dbbecf7883294d8ecb (patch) | |
| tree | 5dfa47ef1006585271f860adc52a5f418f1e82fc /toolsrc/include | |
| parent | 60296cf16189d4cb048482a1c4476a41d9b18918 (diff) | |
| download | vcpkg-06597edfb7e47ff16c60c6dbbecf7883294d8ecb.tar.gz vcpkg-06597edfb7e47ff16c60c6dbbecf7883294d8ecb.zip | |
[vcpkg-export] Add NuGet id and NuGet version options to export command.
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg_optional.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg_optional.h b/toolsrc/include/vcpkg_optional.h index 03fa50678..31a2d3e88 100644 --- a/toolsrc/include/vcpkg_optional.h +++ b/toolsrc/include/vcpkg_optional.h @@ -65,6 +65,12 @@ namespace vcpkg T m_t; }; + template<class U> + Optional<std::decay_t<U>> make_optional(U&& u) + { + return Optional<std::decay_t<U>>(std::forward<U>(u)); + } + template<class T> bool operator==(const Optional<T>& o, const T& t) { |
