From 36666742ca0e7eb49df502ac2e0526a3e6cdeebd Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Fri, 13 May 2016 22:20:43 +0000 Subject: [PATCH] Another attempt to fix MSVC by explicitly disabling the conversion operator when the value type can't be initialized from the argument type. Testing with the online MSVC compiler is finally happy with this, let's see if the build bot will tolerate it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269501 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/Sequence.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/Sequence.h b/include/llvm/ADT/Sequence.h index 62d46fd2968..5d36831cc12 100644 --- a/include/llvm/ADT/Sequence.h +++ b/include/llvm/ADT/Sequence.h @@ -40,7 +40,7 @@ public: value_sequence_iterator(value_sequence_iterator &&Arg) : Value(std::move(Arg.Value)) {} - template + template ()))> value_sequence_iterator(U &&Value) : Value(std::forward(Value)) {} value_sequence_iterator &operator+=(difference_type N) {