Skip to content

Commit

Permalink
Fix broken pywraps2 build (#216)
Browse files Browse the repository at this point in the history
Broken by #212.
  • Loading branch information
jmr authored Nov 8, 2021
1 parent 67747db commit 2a87778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/python/s2.i
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@
%include "stdint.i"

%template() std::vector<unsigned long long>;
%template() std::vector<string>;
%template() std::vector<std::string>;
%template() std::vector<S2CellId>;
%template() std::vector<S2Point>;
%template() std::vector<S2LatLng>;

%apply int {int32};
%apply unsigned long long {uint64};
%apply std::string {string};
%apply std::vector<unsigned long long> const & {std::vector<uint64> const &};

// Standard Google convention is to ignore all functions and methods, and
Expand Down
2 changes: 1 addition & 1 deletion src/python/s2_common.i
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ class S2Point {

%define USE_STREAM_INSERTOR_FOR_STR(type)
%extend type {
string __str__() {
std::string __str__() {
std::ostringstream output;
output << *self << std::ends;
return output.str();
Expand Down

0 comments on commit 2a87778

Please sign in to comment.