-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* openmesh: add v10.0.0 * openmesh: rename to v10.0 * openmesh: ensure cppstd is set * openmesh: libc++ requires C++14 * openmesh: add a patch to fix C++11 compatibility
- Loading branch information
Showing
4 changed files
with
35 additions
and
2 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
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
17 changes: 17 additions & 0 deletions
17
recipes/openmesh/all/patches/restore-cxx11-compatibility.patch
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Partial revert of https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/OpenMesh/-/commit/998eec1390dcabbb502dc1ac1bc17cd09a16e343 | ||
for compatibility with C++11. | ||
|
||
https://web.archive.org/web/20151001014443/http://en.cppreference.com/w/cpp/container/vector/emplace_back | ||
"The specialization std::vector<bool> did not have emplace_back() member until C++14." | ||
|
||
--- src/OpenMesh/Core/Utils/Property.hh | ||
+++ src/OpenMesh/Core/Utils/Property.hh | ||
@@ -250,7 +250,7 @@ | ||
virtual void reserve(size_t _n) override { data_.reserve(_n); } | ||
virtual void resize(size_t _n) override { data_.resize(_n); } | ||
virtual void clear() override { data_.clear(); vector_type().swap(data_); } | ||
- virtual void push_back() override { data_.emplace_back(); } | ||
+ virtual void push_back() override { data_.push_back(bool()); } | ||
virtual void swap(size_t _i0, size_t _i1) override | ||
{ bool t(data_[_i0]); data_[_i0]=data_[_i1]; data_[_i1]=t; } | ||
virtual void copy(size_t _i0, size_t _i1) override |
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,4 +1,6 @@ | ||
versions: | ||
"10.0": | ||
folder: all | ||
"9.0": | ||
folder: all | ||
"8.1": | ||
|