threadSafety::CopyOnWriteVector: Use LLVM_DELETED_FUNCTION here due to missing functionality of msc17.

llvm-svn: 206345
This commit is contained in:
NAKAMURA Takumi 2014-04-16 01:21:53 +00:00
parent 36c6a50512
commit a14deb4a8b
1 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ private:
public:
CopyOnWriteVector() : Data(0) { }
CopyOnWriteVector(const CopyOnWriteVector &V) = delete;
CopyOnWriteVector(const CopyOnWriteVector &V) LLVM_DELETED_FUNCTION;
CopyOnWriteVector(CopyOnWriteVector &&V) : Data(V.Data) {
V.Data = 0;
}
@ -217,7 +217,7 @@ public:
CopyOnWriteVector clone() { return CopyOnWriteVector(Data); }
// No copy constructor or copy assignment. Use clone() with move assignment.
void operator=(const CopyOnWriteVector &V) = delete;
void operator=(const CopyOnWriteVector &V) LLVM_DELETED_FUNCTION;
void operator=(CopyOnWriteVector &&V) {
destroy();