diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-12-14 14:31:16 -0800 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-12-14 14:31:28 -0800 |
| commit | 63a23cf0cad4da12eed69883f37c21d319461187 (patch) | |
| tree | 39ae91f7d6aa38d8265e1cc1bf356af0b48126a7 /toolsrc/include | |
| parent | 7b7e7dac3b5518a263053fcc2fd25bca5f71d031 (diff) | |
| download | vcpkg-63a23cf0cad4da12eed69883f37c21d319461187.tar.gz vcpkg-63a23cf0cad4da12eed69883f37c21d319461187.zip | |
[vcpkg] Fix regressions in WSL build.
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/base/optional.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/toolsrc/include/vcpkg/base/optional.h b/toolsrc/include/vcpkg/base/optional.h index aa9e480fd..af2d297a6 100644 --- a/toolsrc/include/vcpkg/base/optional.h +++ b/toolsrc/include/vcpkg/base/optional.h @@ -53,10 +53,8 @@ namespace vcpkg // Constructors are intentionally implicit constexpr Optional(NullOpt) {} - Optional(const T& t) : m_base(t) {} - - template<class = std::enable_if_t<!std::is_reference<T>::value>> - Optional(T&& t) : m_base(std::move(t)) + template<class U> + Optional(U&& t) : m_base(std::forward<U>(t)) { } |
