Fixing PropertyManager so that it cooperates with bool properties even on unforgiving implementations (such as clang).

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@1265 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Hans-Christian Ebke
2015-05-12 09:55:33 +00:00
parent 777f97837b
commit 1197b0d7d3

View File

@@ -320,9 +320,9 @@ class PropertyManager {
* @param end End iterator. (Exclusive.) * @param end End iterator. (Exclusive.)
* @param value The value the range will be set to. * @param value The value the range will be set to.
*/ */
template<typename HandleTypeIterator> template<typename HandleTypeIterator, typename PROP_VALUE>
void set_range(HandleTypeIterator begin, HandleTypeIterator end, void set_range(HandleTypeIterator begin, HandleTypeIterator end,
typename PROPTYPE::const_reference value) { const PROP_VALUE &value) {
for (; begin != end; ++begin) for (; begin != end; ++begin)
(*this)[*begin] = value; (*this)[*begin] = value;
} }