Skip to content

Commit faf5686

Browse files
committed
[algorithms] fix msvc build error
1 parent 352b5c2 commit faf5686

File tree

2 files changed

+3
-2
lines changed
  • tests/core/019-export-matrix
  • vclib/core/include/vclib/types

2 files changed

+3
-2
lines changed

tests/core/019-export-matrix/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ void testFaceVector(const auto& pm)
152152
{
153153
auto faces = vcl::faceIndicesVector<VectorType>(pm);
154154

155-
uint nIndices = countPerFaceVertexReferences(pm);
155+
vcl::uint nIndices = countPerFaceVertexReferences(pm);
156156
REQUIRE(faces.size() == nIndices);
157157

158-
uint i = 0;
158+
vcl::uint i = 0;
159159
for (const auto& f : pm.faces()) {
160160
for (const auto* v : f.vertices()) {
161161
REQUIRE(faces[i] == pm.index(v));

vclib/core/include/vclib/types/base.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ enum class MatrixStorageType { ROW_MAJOR, COLUMN_MAJOR };
7979
* @param[in] e: The enum value.
8080
* @return The value casted to the underlying type of the enum.
8181
*/
82+
// TODO: remove from c++23 (std::to_underlying)
8283
template<typename E>
8384
constexpr typename std::underlying_type<E>::type toUnderlying(E e) noexcept
8485
{

0 commit comments

Comments
 (0)