diff options
author | Brad King <brad.king@kitware.com> | 2020-09-28 13:35:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-28 13:46:34 (GMT) |
commit | 0e59b45dfce89ea72e07eb5076f1e12326a3f761 (patch) | |
tree | 6bea970d5a7a033893aaf9c0c125e56b5720e486 | |
parent | 1b03ac7da76c05bfa60e5fcf95aa2bfdf64f27cf (diff) | |
download | CMake-0e59b45dfce89ea72e07eb5076f1e12326a3f761.zip CMake-0e59b45dfce89ea72e07eb5076f1e12326a3f761.tar.gz CMake-0e59b45dfce89ea72e07eb5076f1e12326a3f761.tar.bz2 |
cmListFileCache: Add explicit constructors
In order to construct with an initializer list in pure C++11, add
the explicit constructors.
-rw-r--r-- | Source/cmListFileCache.h | 8 |
1 files changed, 8 insertions, 0 deletions
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) { |