[llvm] r283394 - Fix the build with MSVC 2013, still cannot default move ctors yet

David Majnemer via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 5 14:54:11 PDT 2016


On Wed, Oct 5, 2016 at 2:44 PM, Reid Kleckner via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> Author: rnk
> Date: Wed Oct  5 16:44:46 2016
> New Revision: 283394
>
> URL: http://llvm.org/viewvc/llvm-project?rev=283394&view=rev
> Log:
> Fix the build with MSVC 2013, still cannot default move ctors yet
>
> Ten days.
>
> Modified:
>     llvm/trunk/unittests/ADT/STLExtrasTest.cpp
>
> Modified: llvm/trunk/unittests/ADT/STLExtrasTest.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/
> ADT/STLExtrasTest.cpp?rev=283394&r1=283393&r2=283394&view=diff
> ============================================================
> ==================
> --- llvm/trunk/unittests/ADT/STLExtrasTest.cpp (original)
> +++ llvm/trunk/unittests/ADT/STLExtrasTest.cpp Wed Oct  5 16:44:46 2016
> @@ -136,7 +136,8 @@ template <> struct CanCopy<false> {
>    CanCopy(const CanCopy &) = delete;
>
>    CanCopy() = default;
> -  CanCopy(CanCopy &&) = default;
> +  // FIXME: Use '= default' when we drop MSVC 2013.
> +  CanCopy(CanCopy &&) {};
>

Extra ';' ?


>  };
>
>  template <bool Moveable, bool Copyable>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161005/d580c974/attachment.html>


More information about the llvm-commits mailing list