From 0e59b45dfce89ea72e07eb5076f1e12326a3f761 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 28 Sep 2020 09:35:08 -0400 Subject: cmListFileCache: Add explicit constructors In order to construct with an initializer list in pure C++11, add the explicit constructors. --- Source/cmListFileCache.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/cmListFileCache.h b/Source/cmListFileCache.h index c9556ab..5773e6a 100644 --- a/Source/cmListFileCache.h +++ b/Source/cmListFileCache.h @@ -73,6 +73,14 @@ public: std::string FilePath; long Line = 0; + cmListFileContext() = default; + cmListFileContext(std::string name, std::string filePath, long line) + : Name(std::move(name)) + , FilePath(std::move(filePath)) + , Line(line) + { + } + static cmListFileContext FromCommandContext(cmCommandContext const& lfcc, std::string const& fileName) { -- cgit v0.12