1481: Fix the initialization of mln::literal::zero.

https://svn.lrde.epita.fr/svn/oln/trunk/milena Index: ChangeLog from Thierry Geraud <thierry.geraud@lrde.epita.fr> Fix the initialization of mln::literal::zero. * mln/literal/zero.hh (mln::literal::zero): s/static/extern const/. Use a reference. Move implementation within MLN_INCLUDE_ONLY. zero.hh | 4 +++- 1 files changed, 3 insertions(+), 1 deletion(-) Index: mln/literal/zero.hh --- mln/literal/zero.hh (revision 1480) +++ mln/literal/zero.hh (working copy) @@ -56,7 +56,7 @@ /// Literal zero. - static zero_t zero = zero_t(); + extern const zero_t& zero; # ifndef MLN_INCLUDE_ONLY @@ -68,6 +68,8 @@ return 0; } + const zero_t& zero = zero_t(); + # endif // ! MLN_INCLUDE_ONLY } // end of namespace mln::literal
participants (1)
-
Thierry Geraud