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

Add static_assert<bool> to strings inside of assert calls (#638). #77

Closed
wants to merge 3 commits into from

Conversation

schwehr
Copy link
Member

@schwehr schwehr commented Feb 1, 2017

Allows compiling with -Wpointer-bool-conversion.

Allows compiling with -Wpointer-bool-conversion.
@@ -79,7 +79,7 @@ Geometry *ExtractLineByLocation::reverse(const Geometry *linear)
}
else
{
assert(!"non-linear geometry encountered");
assert(!!static_cast<bool>("non-linear geometry encountered"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too many !

@strk
Copy link
Member

strk commented Feb 1, 2017

Thanks
r4331 = 9c7b893 (refs/remotes/trunk)

@strk strk closed this Feb 1, 2017
@strk
Copy link
Member

strk commented Feb 1, 2017

r4332 = 4eb2f9dcceb1e10209c6f675fdddcacf57f81726 (refs/remotes/3.6)
for the record

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.

None yet

2 participants