aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/base/expected.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/toolsrc/include/vcpkg/base/expected.h b/toolsrc/include/vcpkg/base/expected.h
index 12bb64727..13e7b4bcb 100644
--- a/toolsrc/include/vcpkg/base/expected.h
+++ b/toolsrc/include/vcpkg/base/expected.h
@@ -110,7 +110,10 @@ namespace vcpkg
// Constructors are intentionally implicit
ExpectedT(const S& s, ExpectedRightTag = {}) : m_s(s) { }
- ExpectedT(S&& s, ExpectedRightTag = {}) : m_s(std::move(s)) { }
+ template<class = std::enable_if<!std::is_reference<S>::value>>
+ ExpectedT(S&& s, ExpectedRightTag = {}) : m_s(std::move(s))
+ {
+ }
ExpectedT(const T& t, ExpectedLeftTag = {}) : m_t(t) { }
template<class = std::enable_if<!std::is_reference<T>::value>>