Skip to content
Snippets Groups Projects
Commit c6feaace authored by Andrew Heather's avatar Andrew Heather
Browse files

added copy constructors

parent 7037f397
Branches
Tags
No related merge requests found
......@@ -87,6 +87,12 @@ public:
Particle<indexedParticle>(c, is)
{}
//- Construct as a copy
indexedParticle(const indexedParticle& p)
:
Particle<indexedParticle>(p)
{}
//- Construct and return a clone
autoPtr<indexedParticle> clone() const
{
......
......@@ -81,6 +81,12 @@ public:
Particle<passiveParticle>(c, is)
{}
//- Construct as copy
passiveParticle(const passiveParticle& p)
:
Particle<passiveParticle>(p)
{}
//- Construct and return a clone
autoPtr<passiveParticle> clone() const
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment