Skip to content

Fix ambiguous assignment operator compile error#2157

Merged
alecjacobson merged 8 commits intolibigl:mainfrom
Q-Minh:2156-compilation-error
Mar 15, 2023
Merged

Fix ambiguous assignment operator compile error#2157
alecjacobson merged 8 commits intolibigl:mainfrom
Q-Minh:2156-compilation-error

Conversation

@Q-Minh
Copy link
Copy Markdown
Contributor

@Q-Minh Q-Minh commented Jan 27, 2023

Fixes #2156 .

Cast Eigen::Index (which is alias to ptrdiff_t) to the correct coefficient type so that the argument to FI.array().min(...) does not result in a compilation error.

The code in tutorial 720 Blue Noise now compiles (on my platform, i.e. MSVC version 1929 using Eigen 3.4.0 on Windows 10).

Checklist

  • All changes meet libigl style-guidelines.
  • Adds new .cpp file.
  • Adds corresponding unit test.
  • This is a minor change.

@alecjacobson alecjacobson merged commit a05865e into libigl:main Mar 15, 2023
@Q-Minh Q-Minh deleted the 2156-compilation-error branch March 15, 2023 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ambiguous assignment operator in random_points_mesh_mesh.cpp

2 participants