Skip to content

Commit d9aaaed

Browse files
committed
AST: remove extra copy constructors
Visual Studio objects with the following: ``` AST/AnyRequest.h(243): error: C2580: 'swift::AnyRequest::AnyRequest(const swift::AnyRequest &)': multiple versions of a defaulted special member functions are not allowed AST/AnyRequest(243): warning C4521: 'swift::AnyRequest': multiple copy constructors specified ``` Remove the non-const implementation, the default'ed definition should be sufficient. Additionally, remove the nonsense const move constructor.
1 parent 72c5367 commit d9aaaed

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

include/swift/AST/AnyRequest.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,6 @@ class AnyRequest {
158158
return *this;
159159
}
160160

161-
AnyRequest(AnyRequest &other)
162-
: storageKind(other.storageKind), stored(other.stored) { }
163-
164-
AnyRequest(const AnyRequest &&other)
165-
: storageKind(other.storageKind), stored(other.stored) { }
166-
167161
// Create a local template typename `ValueType` in the template specialization
168162
// so that we can refer to it in the SFINAE condition as well as the body of
169163
// the template itself. The SFINAE condition allows us to remove this

0 commit comments

Comments
 (0)