Skip to content

Fix overriding of C++11's std::swap function#236

Open
LoganjdM wants to merge 1 commit intotsoding:mainfrom
LoganjdM:main
Open

Fix overriding of C++11's std::swap function#236
LoganjdM wants to merge 1 commit intotsoding:mainfrom
LoganjdM:main

Conversation

@LoganjdM
Copy link
Copy Markdown

the nob_swap macro from v1.25.0 redefines std::swap() causing a nasty (standard) long compile error about incorrect arguments to std::swap() in other C++ stdlib headers since C++ is bad good.

I think simply having a conditional at the end of the NOB_STRIP_PREFIX is best, unless there's a point else where we deal with un-definitions of macros I didn't spot- minor issue really.

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.

1 participant