mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-26 17:12:10 +00:00
FIX scalar_expression also does not require default constructor and nil_
svn path=/trunk/boost/boost/numeric/ublas/; revision=30033
This commit is contained in:
@@ -84,9 +84,6 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
|
||||
// Construction and destruction
|
||||
BOOST_UBLAS_INLINE
|
||||
scalar_reference ():
|
||||
t_ (nil_) {}
|
||||
BOOST_UBLAS_INLINE
|
||||
explicit scalar_reference (reference t):
|
||||
t_ (t) {}
|
||||
|
||||
@@ -117,13 +114,8 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
|
||||
private:
|
||||
reference t_;
|
||||
static value_type nil_;
|
||||
};
|
||||
|
||||
template<class T>
|
||||
typename scalar_reference<T>::value_type scalar_reference<T>::nil_
|
||||
= typename scalar_reference<T>::value_type ();
|
||||
|
||||
template<class T>
|
||||
class scalar_value:
|
||||
public scalar_expression<scalar_value<T> > {
|
||||
|
||||
Reference in New Issue
Block a user