[clang-tools-extra] r320578 - [clangd] Try to workaround MSVC compilation failure.
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 13 05:43:47 PST 2017
Author: ibiryukov
Date: Wed Dec 13 05:43:47 2017
New Revision: 320578
URL: http://llvm.org/viewvc/llvm-project?rev=320578&view=rev
Log:
[clangd] Try to workaround MSVC compilation failure.
Modified:
clang-tools-extra/trunk/clangd/Context.h
Modified: clang-tools-extra/trunk/clangd/Context.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Context.h?rev=320578&r1=320577&r2=320578&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/Context.h (original)
+++ clang-tools-extra/trunk/clangd/Context.h Wed Dec 13 05:43:47 2017
@@ -95,6 +95,11 @@ private:
Context(std::shared_ptr<const Data> DataPtr);
public:
+ /// Same as Context::empty(), please use Context::empty() instead.
+ /// Constructor is defined to workaround a bug in MSVC's version of STL.
+ /// (arguments of std::future<> must be default-construcitble in MSVC).
+ Context() = default;
+
/// Move-only.
Context(Context const &) = delete;
Context &operator=(const Context &) = delete;
More information about the cfe-commits
mailing list