* mln/value/ops.hh (mln_trait_value_sum_product_)
(mln_sum_product_): New macros.
---
milena/ChangeLog | 7 +++++++
milena/mln/value/ops.hh | 6 +++++-
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index fb2b087..59ce01f 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,12 @@
2010-10-21 Roland Levillain <roland(a)lrde.epita.fr>
+ Add macros for non-template contexts in mln/value/ops.hh.
+
+ * mln/value/ops.hh (mln_trait_value_sum_product_)
+ (mln_sum_product_): New macros.
+
+2010-10-21 Roland Levillain <roland(a)lrde.epita.fr>
+
Improve the genericity of vector normalization.
* mln/algebra/vec.hh (mln::algebra::vec<n,T>::normalize): Use
diff --git a/milena/mln/value/ops.hh b/milena/mln/value/ops.hh
index 49d35ea..5d76002 100644
--- a/milena/mln/value/ops.hh
+++ b/milena/mln/value/ops.hh
@@ -1,4 +1,5 @@
-// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2007, 2008, 2009, 2010 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -44,10 +45,13 @@
/// Type trait for value sum.
# define mln_trait_value_sum_product(T, U) \
typename mln::trait::value_< mln_trait_op_times(T,U) >::sum
+# define mln_trait_value_sum_product_(T, U) \
+ mln::trait::value_< mln_trait_op_times_(T,U) >::sum
/// Shortcut for type trait for value sum.
# define mln_sum_product(T, U) mln_trait_value_sum_product(T, U)
+# define mln_sum_product_(T, U) mln_trait_value_sum_product_(T, U)
// FIXME: In the definitions below, is that equiv or interop?
--
1.5.6.5