mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-21 03:22:14 +00:00
FIX erase_element, remove returns from function which is defined as void
[SVN r31346]
This commit is contained in:
@@ -203,7 +203,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
}
|
||||
BOOST_UBLAS_INLINE
|
||||
void erase_element (size_type i, size_type j) {
|
||||
return (operator () (i, j) = value_type/*zero*/());
|
||||
operator () (i, j) = value_type/*zero*/();
|
||||
}
|
||||
|
||||
// Zeroing
|
||||
|
||||
@@ -165,7 +165,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
return (at_element (i, j) = t);
|
||||
}
|
||||
void erase_element (size_type i, size_type j) {
|
||||
return (at_element (i, j) = value_type/*zero*/());
|
||||
at_element (i, j) = value_type/*zero*/();
|
||||
}
|
||||
|
||||
// Zeroing
|
||||
@@ -1116,7 +1116,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
}
|
||||
BOOST_UBLAS_INLINE
|
||||
void erase_element (size_type i, size_type j) {
|
||||
return (at_element (i, j) = value_type/*zero*/());
|
||||
at_element (i, j) = value_type/*zero*/();
|
||||
}
|
||||
|
||||
// Zeroing
|
||||
|
||||
@@ -175,7 +175,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
}
|
||||
BOOST_UBLAS_INLINE
|
||||
void erase_element (size_type i, size_type j) {
|
||||
return (operator () (i, j) = value_type/*zero*/());
|
||||
operator () (i, j) = value_type/*zero*/();
|
||||
}
|
||||
|
||||
// Zeroing
|
||||
|
||||
@@ -157,7 +157,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
}
|
||||
BOOST_UBLAS_INLINE
|
||||
void erase_element (size_type i, size_type j) {
|
||||
return (operator () (i, j) = value_type/*zero*/());
|
||||
operator () (i, j) = value_type/*zero*/();
|
||||
}
|
||||
|
||||
// Zeroing
|
||||
|
||||
@@ -1307,7 +1307,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
BOOST_UBLAS_INLINE
|
||||
void erase_element (size_type i) {
|
||||
BOOST_UBLAS_CHECK (i < size_, bad_index ());
|
||||
return (data_ [i] = value_type/*zero*/());
|
||||
data_ [i] = value_type/*zero*/();
|
||||
}
|
||||
|
||||
// Zeroing
|
||||
|
||||
Reference in New Issue
Block a user