make implicit copy contructor explicit and thus silence compiler warnings

This commit is contained in:
Axel Kohlmeyer
2021-01-29 16:14:06 -05:00
parent 48fa5e6736
commit 72b022c5fa

View File

@ -862,14 +862,23 @@ struct cubic_spline_coef
cubic_spline_coef() {}
LAMMPS_INLINE
void operator = (const cubic_spline_coef& rhs) {
cubic_spline_coef(const cubic_spline_coef &_c) {
a = _c.a;
b = _c.b;
c = _c.c;
d = _c.d;
}
LAMMPS_INLINE
void operator=(const cubic_spline_coef &rhs) {
a = rhs.a;
b = rhs.b;
c = rhs.c;
d = rhs.d;
}
LAMMPS_INLINE
void operator = (const cubic_spline_coef& rhs) volatile {
void operator=(const cubic_spline_coef &rhs) volatile {
a = rhs.a;
b = rhs.b;
c = rhs.c;