diff options
| author | Ilya Biryukov <ibiryukov@google.com> | 2017-12-13 13:43:47 +0000 |
|---|---|---|
| committer | Ilya Biryukov <ibiryukov@google.com> | 2017-12-13 13:43:47 +0000 |
| commit | a1d324d8b7c9f5ec864373fbe50f87732a2edefe (patch) | |
| tree | 7a225f86f5e2f183780984370d9baf139234b1e7 | |
| parent | 5a85b8e6ddc13b48efdf0f9726188b1dfcbe6343 (diff) | |
| download | bcm5719-llvm-a1d324d8b7c9f5ec864373fbe50f87732a2edefe.tar.gz bcm5719-llvm-a1d324d8b7c9f5ec864373fbe50f87732a2edefe.zip | |
[clangd] Try to workaround MSVC compilation failure.
llvm-svn: 320578
| -rw-r--r-- | clang-tools-extra/clangd/Context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/Context.h b/clang-tools-extra/clangd/Context.h index 33e946b6d63..c64780caf44 100644 --- a/clang-tools-extra/clangd/Context.h +++ b/clang-tools-extra/clangd/Context.h @@ -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; |

