Skip to content

Commit d50e942

Browse files
authored
Change const to constexpr so that symbols are resolved (#442)
1 parent 95d9675 commit d50e942

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/well_known_messages.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ namespace grpc_labview
4949
virtual ~I2DArray() = default;
5050

5151
protected:
52-
static const int _rowsIndex = 1;
53-
static const int _columnsIndex = 2;
54-
static const int _dataIndex = 3;
52+
static constexpr int _rowsIndex = 1;
53+
static constexpr int _columnsIndex = 2;
54+
static constexpr int _dataIndex = 3;
5555
};
5656

5757
//---------------------------------------------------------------------
@@ -223,4 +223,4 @@ namespace grpc_labview
223223
void CopyArrayFromClusterToMessage(int totalElements, LV2DArrayHandle array, const std::shared_ptr<LVMessageValue>& dataFieldValue) override;
224224
};
225225
}
226-
}
226+
}

0 commit comments

Comments
 (0)