aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
authorVictor Romero <romerosanchezv@gmail.com>2020-02-19 16:51:09 -0800
committerGitHub <noreply@github.com>2020-02-19 16:51:09 -0800
commitef60f1d9b97fab6fcc61651936196866bb6553d0 (patch)
tree74f44c2073a6db9f3a7a03bbd636caeac5ffaea3 /toolsrc/include
parent9db90b397d1257f5af62f57f0b4f53072803b6e2 (diff)
downloadvcpkg-ef60f1d9b97fab6fcc61651936196866bb6553d0.tar.gz
vcpkg-ef60f1d9b97fab6fcc61651936196866bb6553d0.zip
Fix build for VS2015 (#10126)
* Add missing constructors for TexRowCol required by VS2015 * Make TextRowCol() constexpr and noexcept
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/textrowcol.h2
1 files changed, 2 insertions, 0 deletions
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.