Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nickolas Davis
VTK-m
Commits
482266b4
Commit
482266b4
authored
Sep 10, 2020
by
Ben Boeckel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Particle: explicitly make the copy ctor and assignment op
They are disabled because we have a custom destructor.
parent
1037aa75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
vtkm/Particle.h
vtkm/Particle.h
+20
-0
No files found.
vtkm/Particle.h
View file @
482266b4
...
...
@@ -129,6 +129,13 @@ public:
VTKM_EXEC_CONT
Particle
()
{}
VTKM_EXEC_CONT
Particle
(
const
vtkm
::
Particle
&
rhs
)
:
ParticleBase
(
rhs
)
{
// This must not be defaulted, since defaulted copy constructors are
// troublesome with CUDA __host__ __device__ markup.
}
VTKM_EXEC_CONT
~
Particle
()
noexcept
override
{
// This must not be defaulted, since defaulted virtual destructors are
...
...
@@ -146,6 +153,19 @@ public:
{
}
VTKM_EXEC_CONT
Particle
&
operator
=
(
const
vtkm
::
Particle
&
rhs
)
{
// This must not be defaulted, since defaulted assignment operators are
// troublesome with CUDA __host__ __device__ markup.
if
(
&
rhs
==
this
)
{
return
*
this
;
}
vtkm
::
ParticleBase
::
operator
=
(
rhs
);
return
*
this
;
}
VTKM_EXEC_CONT
vtkm
::
Vec3f
Next
(
const
vtkm
::
VecVariable
<
vtkm
::
Vec3f
,
2
>&
vectors
,
const
vtkm
::
FloatDefault
&
length
)
override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment