-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from munterfinger/release/v0.2.0
Release/v0.2.0
- Loading branch information
Showing
23 changed files
with
498 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
^docs$ | ||
^pkgdown$ | ||
^codecov\.yml$ | ||
^.vscode$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,6 @@ vignettes/*.pdf | |
*.DS_Store | ||
inst/doc | ||
docs | ||
|
||
# vscode | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* Copy from :https://github.com/heremaps/flexible-polyline/blob/master/cpp/ | ||
* Modified :Line 93, 211 | ||
* Modified :Line 93, 210, 278 | ||
* Date :2020-06-09, Merlin Unterfinger <[email protected]> | ||
* | ||
* Copyright (C) 2019 HERE Europe B.V. | ||
|
@@ -201,7 +201,6 @@ class Encoder { | |
std::string get_encoded() { | ||
return m_result; | ||
} | ||
|
||
}; | ||
|
||
class Decoder { | ||
|
@@ -276,9 +275,9 @@ template<typename Iter> | |
std::string polyline_encode(Iter iter, int precision, ThirdDim third_dim, int third_dim_precision) { | ||
auto enc = encoder::Encoder(precision, third_dim, third_dim_precision); | ||
|
||
for (const auto item : iter) { | ||
enc.add(&item); | ||
} | ||
for (const auto& item : iter) { // Mod: Return by reference to avoid clang (Apple clang version 12.0.0) range-loop-analysis | ||
enc.add(&item); // warning on MacOS: "loop variable 'item' of type 'const std::__1::pair<double, double>' | ||
} // creates a copy from type 'const std::__1::pair<double, double>'" | ||
|
||
return enc.get_encoded(); | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.