modernize: replace typedef with using, use = default for default members

This commit is contained in:
Axel Kohlmeyer
2025-06-25 23:39:38 -04:00
parent 2a3afae3ff
commit 7597a227f4
2 changed files with 10 additions and 10 deletions

View File

@ -104,10 +104,10 @@ static constexpr uint32_t MEMCPYMASK = (static_cast<uint32_t>(1) << 31) - 1U;
#ifdef LAMMPS_SMALLBIG #ifdef LAMMPS_SMALLBIG
typedef int smallint; using smallint = int;
typedef int imageint; using imageint = int;
typedef int tagint; using tagint = int;
typedef int64_t bigint; using bigint = int64_t;
#define MAXSMALLINT INT_MAX #define MAXSMALLINT INT_MAX
#define MAXTAGINT INT_MAX #define MAXTAGINT INT_MAX
@ -139,10 +139,10 @@ typedef int64_t bigint;
#ifdef LAMMPS_BIGBIG #ifdef LAMMPS_BIGBIG
typedef int smallint; using smallint = int;
typedef int64_t imageint; using imageint = int64_t;
typedef int64_t tagint; using tagint = int64_t;
typedef int64_t bigint; using bigint = int64_t;
#define MAXSMALLINT INT_MAX #define MAXSMALLINT INT_MAX
#define MAXTAGINT INT64_MAX #define MAXTAGINT INT64_MAX

View File

@ -92,9 +92,9 @@ class Pointers {
atomKK(ptr->atomKK), atomKK(ptr->atomKK),
memoryKK(ptr->memoryKK), memoryKK(ptr->memoryKK),
python(ptr->python) {} python(ptr->python) {}
virtual ~Pointers() noexcept(false) {} virtual ~Pointers() noexcept(false) = default;
// remove other default members // remove other default members where possible
Pointers() = delete; Pointers() = delete;
Pointers(const Pointers &) = default; Pointers(const Pointers &) = default;