diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-03-31 16:23:48 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-31 16:23:48 -0700 |
| commit | c5950aa651136cf55c38a6e1be4090b1f33a5d94 (patch) | |
| tree | 5b98507e92275146b98e9ee11d325229a3027277 /toolsrc/include | |
| parent | 14297a5bd916bbe41852625dd57637c92fb79c06 (diff) | |
| download | vcpkg-c5950aa651136cf55c38a6e1be4090b1f33a5d94.tar.gz vcpkg-c5950aa651136cf55c38a6e1be4090b1f33a5d94.zip | |
Rename expected::get_or_exit() to expected::value_or_exit()
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/expected.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/include/expected.h b/toolsrc/include/expected.h index 7cb021c62..24257dcbf 100644 --- a/toolsrc/include/expected.h +++ b/toolsrc/include/expected.h @@ -40,13 +40,13 @@ namespace vcpkg return this->m_error_code; } - T&& get_or_exit(const LineInfo& line_info) && + T&& value_or_exit(const LineInfo& line_info) && { exit_if_error(line_info); return std::move(this->m_t); } - const T& get_or_exit(const LineInfo& line_info) const & + const T& value_or_exit(const LineInfo& line_info) const & { exit_if_error(line_info); return this->m_t; |
