Commit 36a6e29f by Gabriel Dos Reis Committed by Gabriel Dos Reis

valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION): When building meta-expressions…

valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION): When building meta-expressions don't forget to take the contained closures.

1999-11-05  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>

        * std/valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION):  When
        building meta-expressions don't forget to take the contained
        closures.

From-SVN: r30424
parent e4c4f09a
1999-11-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
* std/valarray_meta.h (_DEFINE_EXPR_UNARY_FUNCTION): When
building meta-expressions don't forget to take the contained
closures.
1999-10-19 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
* std/valarray_meta.h: (_BinClos::_BinClos): Fix typo.
......
......@@ -917,7 +917,7 @@ _Name(const _Expr<_Dom,typename _Dom::value_type>& __e) \
{ \
typedef typename _Dom::value_type _Tp; \
typedef _UnFunClos<_Expr,_Dom> _Closure; \
return _Expr<_Closure,_Tp> (_Closure (__e, (_Tp(*)(_Tp))(&_Name))); \
return _Expr<_Closure,_Tp>(_Closure(__e(), (_Tp(*)(_Tp))(&_Name))); \
} \
\
template<typename _Tp> \
......
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