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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user