@@ -156,7 +156,6 @@ size_t calculateArrayTotalSizeAndValidateDimensions(List_sp dim_desig, size_t& r
156156namespace core {
157157class Array_O : public General_O {
158158 LISP_ABSTRACT_CLASS (core, ClPkg, Array_O, " array" , General_O);
159- virtual ~Array_O (){};
160159
161160public:
162161 /* ! A hackish (clever?) way to get at the first element of all subclasses
@@ -165,9 +164,6 @@ class Array_O : public General_O {
165164 */
166165 size_t _Length[0 ];
167166
168- public:
169- Array_O (){};
170-
171167public:
172168 // Low level functions for access to contents
173169
@@ -259,19 +255,15 @@ namespace core {
259255struct Rank1 {};
260256class MDArray_O : public Array_O {
261257 LISP_ABSTRACT_CLASS (core, CorePkg, MDArray_O, " mdarray" , Array_O);
262- virtual ~MDArray_O (){};
263-
264- public:
265- MDArray_O (){};
266258
267259public:
268260 typedef size_t value_type; // this is container - needs value_type
269261 typedef gctools::GCArray_moveable<value_type> vector_type;
270262 struct Flags {
271- Flags (){};
272263 size_t _Flags;
273264 static const size_t fillPointerFlag = 0x000001 ;
274265 static const size_t displacedToFlag = 0x000100 ;
266+ Flags () = default ;
275267 Flags (bool fillPointerP, bool displacedToP)
276268 : _Flags((fillPointerP ? fillPointerFlag : 0 ) | (displacedToP ? displacedToFlag : 0 )){};
277269 bool fillPointerP () const { return this ->_Flags & fillPointerFlag; };
@@ -367,7 +359,6 @@ class ComplexVector_O : public MDArray_O {
367359 LISP_ABSTRACT_CLASS (core, CorePkg, ComplexVector_O, " ComplexVector" , MDArray_O);
368360 // One dimension vector
369361public:
370- CLASP_DEFAULT_CTOR ComplexVector_O (){};
371362 ComplexVector_O (size_t dimension, T_sp fillPointer, Array_sp data, bool displacedToP, Fixnum_sp displacedIndexOffset)
372363 : MDArray_O(Rank1(), dimension, fillPointer, data, displacedToP, displacedIndexOffset){};
373364
@@ -380,10 +371,6 @@ namespace core {
380371class SimpleMDArray_O : public MDArray_O {
381372 LISP_ABSTRACT_CLASS (core, CorePkg, SimpleMDArray_O, " simple-mdarray" , MDArray_O);
382373
383- public:
384- CLASP_DEFAULT_CTOR SimpleMDArray_O (){};
385- virtual ~SimpleMDArray_O (){};
386-
387374public:
388375 // multiple dimensions
389376 SimpleMDArray_O (size_t rank, List_sp dimensions, Array_sp data)
@@ -405,10 +392,6 @@ namespace core {
405392
406393class AbstractSimpleVector_O : public Array_O {
407394 LISP_ABSTRACT_CLASS (core, CorePkg, AbstractSimpleVector_O, " AbstractSimpleVector" , Array_O);
408- virtual ~AbstractSimpleVector_O (){};
409-
410- public:
411- AbstractSimpleVector_O (){};
412395
413396public:
414397 virtual T_sp array_type () const override { return cl::_sym_simple_array; };
@@ -455,9 +438,6 @@ class AbstractSimpleVector_O : public Array_O {
455438
456439namespace core {
457440template <typename MyLeafType, typename ValueType, typename MyParentType> class template_SimpleVector : public MyParentType {
458- public:
459- template_SimpleVector (){};
460-
461441public:
462442 // The types that define what this class does
463443 typedef MyParentType Base;
@@ -488,9 +468,6 @@ template <typename MyLeafType, typename ValueType, typename MyParentType> class
488468 template_SimpleVector (I first, S last)
489469 : Base(), _Data(first, last) {};
490470
491- public:
492- static void never_invoke_allocator () { gctools::GCAbstractAllocator<template_SimpleVector>::never_invoke_allocator (); };
493-
494471public:
495472 leaf_smart_ptr_type copy (size_t length, value_type initialElement, bool initialElementSupplied) {
496473 return leaf_type::make (length, initialElement, initialElementSupplied, MIN (length, this ->length ()), this ->begin ());
@@ -549,8 +526,6 @@ template <typename MyLeafType, typename ValueType, typename MyParentType> class
549526namespace core {
550527template <typename MyLeafType, int BitUnitBitWidth, int Signedp>
551528class template_SimpleBitUnitVector : public AbstractSimpleVector_O {
552- public:
553- CLASP_DEFAULT_CTOR template_SimpleBitUnitVector (){};
554529
555530public:
556531 typedef AbstractSimpleVector_O Base;
@@ -668,9 +643,6 @@ MDArray_sp core__make_mdarray(List_sp dimensions, T_sp element_type, bool adjust
668643namespace core {
669644template <typename MyArrayType, typename MySimpleArrayType, typename MySimpleType, typename MyParentType>
670645class template_Array : public MyParentType {
671- public:
672- CLASP_DEFAULT_CTOR template_Array (){};
673-
674646public:
675647 // The types that define what this class does
676648 typedef MyParentType Base; /* e.g. MDArray_O */
@@ -787,9 +759,6 @@ class template_Array : public MyParentType {
787759
788760namespace core {
789761template <typename MyArrayType, typename MySimpleType, typename MyParentType> class template_Vector : public MyParentType {
790- public:
791- CLASP_DEFAULT_CTOR template_Vector (){};
792-
793762public:
794763 // The types that define what this class does
795764 typedef MyParentType Base;
@@ -920,9 +889,6 @@ template <typename MyArrayType, typename MySimpleType, typename MyParentType> cl
920889
921890namespace core {
922891template <typename MyArrayType, typename MySimpleType, typename MyParentType> class template_SimpleArray : public MyParentType {
923- public:
924- CLASP_DEFAULT_CTOR template_SimpleArray (){};
925-
926892public:
927893 // The types that define what this class does
928894 typedef MyParentType Base;
0 commit comments