From: David Blaikie Date: Tue, 3 Mar 2015 18:29:25 +0000 (+0000) Subject: Twine: Explicitly default the copy ctor as it's otherwise deprecated in C++11 by... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6283687346d84cbd4255d924ce7e53831885a98f;p=oota-llvm.git Twine: Explicitly default the copy ctor as it's otherwise deprecated in C++11 by the presence of a user-declared copy assignment operator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231094 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/Twine.h b/include/llvm/ADT/Twine.h index 9e9a4e1ad2c..5f8909e88a1 100644 --- a/include/llvm/ADT/Twine.h +++ b/include/llvm/ADT/Twine.h @@ -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