[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix Engine<..., MultiPatch<..., Remote<Brick> > >::makeOwnCopy
From: |
Richard Guenther |
Subject: |
[PATCH] Fix Engine<..., MultiPatch<..., Remote<Brick> > >::makeOwnCopy |
Date: |
Fri, 9 May 2003 09:44:10 +0200 (CEST) |
Hi!
The following patch fixes makeOwnCopy of remote multipatch engines by
moving the ElementProperties specialization for remote engines contained
in the Engine/tests/makeOwnCopy.cpp test (doh!) to the Engine/RemoteEngine.h
file.
Tested by testing the makeOwnCopy testcase and my personal Field based
testcase that failed previously. Ok?
2003 May 09 Richard Guenther <address@hidden>
* src/Engine/tests/makeOwnCopy.cpp: move ElementProperties
specialization ...
src/Engine/RemoteEngine.h: ... here.
Index: src/Engine/RemoteEngine.h
===================================================================
RCS file: /home/pooma/Repository/r2/src/Engine/RemoteEngine.h,v
retrieving revision 1.35
diff -u -r1.35 RemoteEngine.h
--- src/Engine/RemoteEngine.h 5 Mar 2002 16:14:38 -0000 1.35
+++ src/Engine/RemoteEngine.h 9 May 2003 07:40:14 -0000
@@ -2147,6 +2147,16 @@
}
};
+//-----------------------------------------------------------------------------
+// Traits class telling RefCountedBlockPointer that this class has
+// shallow semantics and a makeOwnCopy method.
+//-----------------------------------------------------------------------------
+
+template <int Dim, class T, class Eng>
+struct ElementProperties<Engine<Dim, T, Remote<Eng> > >
+ : public MakeOwnCopyProperties<Engine<Dim, T, Remote<Eng> > >
+{ };
+
// } // namespace Pooma
///////////////////////////////////////////////////////////////////////////////
Index: src/Engine/tests/makeOwnCopy.cpp
===================================================================
RCS file: /home/pooma/Repository/r2/src/Engine/tests/makeOwnCopy.cpp,v
retrieving revision 1.1
diff -u -r1.1 makeOwnCopy.cpp
--- src/Engine/tests/makeOwnCopy.cpp 16 May 2001 21:21:07 -0000 1.1
+++ src/Engine/tests/makeOwnCopy.cpp 9 May 2003 07:40:15 -0000
@@ -127,16 +127,6 @@
Pooma::finalize();
return ret;
}
-
-//-----------------------------------------------------------------------------
-// Traits class telling RefCountedBlockPointer that this class has
-// shallow semantics and a makeOwnCopy method.
-//-----------------------------------------------------------------------------
-
-template <int Dim, class T, class Eng>
-struct ElementProperties<Engine<Dim, T, Remote<Eng> > >
- : public MakeOwnCopyProperties<Engine<Dim, T, Remote<Eng> > >
-{ };
// ACL:rcsinfo
// ----------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Fix Engine<..., MultiPatch<..., Remote<Brick> > >::makeOwnCopy,
Richard Guenther <=