Commit 7e54f5b8 by Kriang Lerdsuwanakij Committed by Kriang Lerdsuwanakij

valarray_meta.h (_Expr::operator+): Use qualified id for _Expr template template argument.

	* include/bits/valarray_meta.h (_Expr::operator+): Use qualified id
	for _Expr template template argument.
	(_Expr::operator-): Likewise.
	(_Expr::operator~): Likewise.
	(_Expr::operator!): Likewise.
	(_DEFINE_EXPR_UNARY_OPERATOR): Likewise.

From-SVN: r43862
parent f1ec5147
2001-07-09 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
* include/bits/valarray_meta.h (_Expr::operator+): Use qualified id
for _Expr template template argument.
(_Expr::operator-): Likewise.
(_Expr::operator~): Likewise.
(_Expr::operator!): Likewise.
(_DEFINE_EXPR_UNARY_OPERATOR): Likewise.
2001-07-06 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* libmath/Makefile.am (EXTRA_DIST): Remove atan2f.c and expf.c
......
......@@ -655,16 +655,16 @@ namespace std
valarray<value_type> operator[] (const valarray<bool>&) const;
valarray<value_type> operator[] (const valarray<size_t>&) const;
_Expr<_UnClos<_Unary_plus,_Expr,_Clos>, value_type>
_Expr<_UnClos<_Unary_plus,std::_Expr,_Clos>, value_type>
operator+ () const;
_Expr<_UnClos<negate,_Expr,_Clos>, value_type>
_Expr<_UnClos<negate,std::_Expr,_Clos>, value_type>
operator- () const;
_Expr<_UnClos<_Bitwise_not,_Expr,_Clos>, value_type>
_Expr<_UnClos<_Bitwise_not,std::_Expr,_Clos>, value_type>
operator~ () const;
_Expr<_UnClos<logical_not,_Expr,_Clos>, bool>
_Expr<_UnClos<logical_not,std::_Expr,_Clos>, bool>
operator! () const;
size_t size () const;
......@@ -769,16 +769,16 @@ namespace std
inline _Expr<_UnClos<logical_not,_Expr,_Dom>, bool>
_Expr<_Dom,_Tp>::operator! () const
{
typedef _UnClos<logical_not,_Expr,_Dom> _Closure;
typedef _UnClos<logical_not,std::_Expr,_Dom> _Closure;
return _Expr<_Closure,_Tp> (_Closure(this->_M_closure));
}
#define _DEFINE_EXPR_UNARY_OPERATOR(_Op, _Name) \
template<class _Dom, typename _Tp> \
inline _Expr<_UnClos<_Name,_Expr,_Dom>,_Tp> \
inline _Expr<_UnClos<_Name,std::_Expr,_Dom>,_Tp> \
_Expr<_Dom,_Tp>::operator _Op () const \
{ \
typedef _UnClos<_Name,_Expr,_Dom> _Closure; \
typedef _UnClos<_Name,std::_Expr,_Dom> _Closure; \
return _Expr<_Closure,_Tp> (_Closure (this->_M_closure)); \
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment