modernize: replace typedef with using, use = default for default members
This commit is contained in:
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user