From ef60f1d9b97fab6fcc61651936196866bb6553d0 Mon Sep 17 00:00:00 2001 From: Victor Romero Date: Wed, 19 Feb 2020 16:51:09 -0800 Subject: [PATCH] Fix build for VS2015 (#10126) * Add missing constructors for TexRowCol required by VS2015 * Make TextRowCol() constexpr and noexcept --- toolsrc/include/vcpkg/textrowcol.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolsrc/include/vcpkg/textrowcol.h b/toolsrc/include/vcpkg/textrowcol.h index 5bbf6a899..90c50d887 100644 --- a/toolsrc/include/vcpkg/textrowcol.h +++ b/toolsrc/include/vcpkg/textrowcol.h @@ -4,6 +4,8 @@ namespace vcpkg::Parse { struct TextRowCol { + constexpr TextRowCol() noexcept = default; + constexpr TextRowCol(int row, int column) noexcept : row(row), column(column) {} /// '0' indicates uninitialized; '1' is the first row. int row = 0; /// '0' indicates uninitialized; '1' is the first column.