Fix build for VS2015 (#10126)

* Add missing constructors for TexRowCol required by VS2015

* Make TextRowCol() constexpr and noexcept
This commit is contained in:
Victor Romero 2020-02-19 16:51:09 -08:00 committed by GitHub
parent 9db90b397d
commit ef60f1d9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,8 @@ namespace vcpkg::Parse
{ {
struct TextRowCol 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. /// '0' indicates uninitialized; '1' is the first row.
int row = 0; int row = 0;
/// '0' indicates uninitialized; '1' is the first column. /// '0' indicates uninitialized; '1' is the first column.