* mln/core/concept/function.hh: Add operator=() in Function
concept class.
---
milena/ChangeLog | 7 +++++++
milena/mln/core/concept/function.hh | 17 ++++++++++++++++-
2 files changed, 23 insertions(+), 1 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index f6e355d..1236ea1 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,10 @@
+2011-09-12 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ Workaround for Apple's llvm-gcc 4.2.1 on Mac OS Lion 10.7.1
+
+ * mln/core/concept/function.hh: Add operator=() in Function
+ concept class.
+
2011-09-08 Guillaume Lazzara <z(a)lrde.epita.fr>
* doc/Makefile.am: Fix devel-refman output directory.
diff --git a/milena/mln/core/concept/function.hh b/milena/mln/core/concept/function.hh
index e4ba741..6153997 100644
--- a/milena/mln/core/concept/function.hh
+++ b/milena/mln/core/concept/function.hh
@@ -1,4 +1,5 @@
-// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2007, 2008, 2009, 2011 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of Olena.
//
@@ -70,6 +71,13 @@ namespace mln
protected:
Function();
Function(const Function&);
+
+ /* Workaround for Apple's llvm-gcc 4.2.1 (Mac OS Lion 10.7.1)
+
+ Apple's llvm-gcc has a bug causing memmove() errors if the copy
+ constructor is not declared along with operator=().
+ */
+ Function& operator=(const Function&);
};
@@ -221,6 +229,13 @@ namespace mln
{
}
+ template <typename E>
+ inline
+ Function&
+ Function<E>::operator=(const Function&)
+ {
+ return *this;
+ }
// Function_n2v.
--
1.7.2.5
Show replies by date