From 72b022c5fab61333ee157635a0ffdefba94ead95 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 29 Jan 2021 16:14:06 -0500 Subject: [PATCH] make implicit copy contructor explicit and thus silence compiler warnings --- src/USER-REAXC/reaxc_types.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/USER-REAXC/reaxc_types.h b/src/USER-REAXC/reaxc_types.h index f038f00bb0..36678ad2b0 100644 --- a/src/USER-REAXC/reaxc_types.h +++ b/src/USER-REAXC/reaxc_types.h @@ -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;