[llvm] r231094 - Twine: Explicitly default the copy ctor as it's otherwise deprecated in C++11 by the presence of a user-declared copy assignment operator.
David Blaikie
dblaikie at gmail.com
Tue Mar 3 10:29:25 PST 2015
Author: dblaikie
Date: Tue Mar 3 12:29:25 2015
New Revision: 231094
URL: http://llvm.org/viewvc/llvm-project?rev=231094&view=rev
Log:
Twine: Explicitly default the copy ctor as it's otherwise deprecated in C++11 by the presence of a user-declared copy assignment operator.
Modified:
llvm/trunk/include/llvm/ADT/Twine.h
Modified: llvm/trunk/include/llvm/ADT/Twine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Twine.h?rev=231094&r1=231093&r2=231094&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Twine.h (original)
+++ llvm/trunk/include/llvm/ADT/Twine.h Tue Mar 3 12:29:25 2015
@@ -257,6 +257,8 @@ namespace llvm {
assert(isValid() && "Invalid twine!");
}
+ Twine(const Twine &) = default;
+
/// Construct from a C string.
///
/// We take care here to optimize "" into the empty twine -- this will be
More information about the llvm-commits
mailing list