-
Notifications
You must be signed in to change notification settings - Fork 24
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
IsNull is not declared in MSVC because of __cplusplus #17
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
This library is used by OGDF project which I used to display graph.
When I compile OGDF tests, vs compiler (cl) reports it can't find IsNull function.
The function is located here.
It seems the issue comes from cl since it defines
__cplusplus
variable to 199711L.Please see this link for further information. Basically this value is not updated because cl doesn't fully support C++11.
As a workaround, I modified this line to test if the vs compiler version is above or equal to 1600, the oldest version which supports
nullptr
keyword.-#if __cplusplus > 199711L
+#if __cplusplus > 199711L || _MSC_VER >= 1600
The text was updated successfully, but these errors were encountered: