Replace Swap with std::swap
Polygon and line clipping and offsetting library (C++, C#, Delphi)
Brought to you by:
angusj
Not a bug but just a little request: Instead of defining your own Swap function in clipper.cpp, it would be nice if you could replace it with std::swap. Since it's a function template, it works with arbitrary types. I use a slightly modified version of clipper with a different z coordinate type so that the cInt-based Swap doesn't work.
I've attached a patch that replaces the swap function.
Anonymous
Thanks. Will fix.
Fixed in revision 484.
https://sourceforge.net/p/polyclipping/code/HEAD/tree/trunk/