Index: ChangeLog
from Christophe Berger <christophe(a)lrde.epita.fr>
* oln/core/pw/macros.hh: Fix bug.
macros.hh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: oln/core/pw/macros.hh
--- oln/core/pw/macros.hh (revision 182)
+++ oln/core/pw/macros.hh (working copy)
@@ -60,9 +60,9 @@
operator OperatorSymbol (const oln::pw::abstract::function<L>& lhs, \
const LiteralType& rhs) \
{ \
- precondition(lhs.size() == rhs.size()); \
+ oln::pw::literal<LiteralType> rhs_(rhs); \
oln::pw::binary_op< oln::f_##OperatorName##_type, \
- L, oln::pw::literal<LiteralType> > tmp(lhs, rhs); \
+ L, oln::pw::literal<LiteralType> > tmp(lhs, rhs_); \
return tmp; \
} \
\
@@ -72,9 +72,9 @@
operator OperatorSymbol (const LiteralType& lhs, \
const oln::pw::abstract::function<R>& rhs) \
{ \
- precondition(lhs.size() == rhs.size()); \
+ oln::pw::literal<LiteralType> lhs_(lhs); \
oln::pw::binary_op< oln::f_##OperatorName##_type, \
- oln::pw::literal<LiteralType>, R > tmp(lhs, rhs); \
+ oln::pw::literal<LiteralType>, R > tmp(lhs_, rhs); \
return tmp; \
} \
\