Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail to compile: error: reinterpret_cast from 'std::nullptr_t' to 'const char *' is not allowed #190

Closed
yurivict opened this issue Apr 16, 2024 · 0 comments · Fixed by #191

Comments

@yurivict
Copy link

yurivict commented Apr 16, 2024

OsiTestSolverInterfaceIO.cpp:425:8: error: reinterpret_cast from 'std::nullptr_t' to 'const char *' is not allowed
  425 |                      reinterpret_cast<const char *> (NULL) /*integrality*/,
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OsiTestSolverInterfaceIO.cpp:427:8: error: reinterpret_cast from 'std::nullptr_t' to 'const char **' is not allowed
  427 |                      reinterpret_cast<const char **> (NULL) /*colnam*/, 
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OsiTestSolverInterfaceIO.cpp:428:8: error: reinterpret_cast from 'std::nullptr_t' to 'const char **' is not allowed
  428 |                      reinterpret_cast<const char **> (NULL) /*rownam*/);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.

NULL should be replaced with nullptr in C++ code.

clang-18
FreeBSD 14.0

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 a pull request may close this issue.

1 participant