Remove return type from range::expand

This commit is contained in:
Danny Robson 2012-05-23 17:01:54 +10:00
parent bcab28826c
commit f1505e8b31
2 changed files with 2 additions and 3 deletions

View File

@ -78,7 +78,7 @@ range<T>::clamp (T val) const
template <typename T>
T
void
range<T>::expand (T val) {
min = std::min (min, val);
max = std::max (max, val);

View File

@ -47,8 +47,7 @@ namespace util {
T clamp (T val) const;
/// Expand the range to include this value if necessary
T expand (T val);
void expand (T val);
/// Normalise a number to [0, 1] within the range. Does not check bounds.
double normalise (T val) const;