aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2023-07-21 20:32:58 -0700
committerMike Buland <eichlan@xagasoft.com>2023-07-21 20:32:58 -0700
commit5843905b73616abe5d3180c7fb1c6dfefde93b3c (patch)
tree3ab8ae7c0c063806b349a793102a902b6f35de3d
parent0ac3b14362273c23836f54b9ee0995420eeac349 (diff)
downloadlibbu++-5843905b73616abe5d3180c7fb1c6dfefde93b3c.tar.gz
libbu++-5843905b73616abe5d3180c7fb1c6dfefde93b3c.tar.bz2
libbu++-5843905b73616abe5d3180c7fb1c6dfefde93b3c.tar.xz
libbu++-5843905b73616abe5d3180c7fb1c6dfefde93b3c.zip
Array has delete by index now.
Diffstat (limited to '')
-rw-r--r--default.bld4
-rw-r--r--src/stable/array.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/default.bld b/default.bld
index 8f21f6c..2077185 100644
--- a/default.bld
+++ b/default.bld
@@ -16,8 +16,8 @@ include "gensigs.bld";
16CXXFLAGS += "-ggdb -W -Wall -I."; 16CXXFLAGS += "-ggdb -W -Wall -I.";
17 17
18// Deep memory checks 18// Deep memory checks
19// CXXFLAGS += "-fsanitize=address -fno-omit-frame-pointer"; 19CXXFLAGS += "-fsanitize=address -fno-omit-frame-pointer";
20// LDFLAGS += "-fsanitize=address -fno-omit-frame-pointer"; 20LDFLAGS += "-fsanitize=address -fno-omit-frame-pointer";
21 21
22//CXXFLAGS += "-pg"; 22//CXXFLAGS += "-pg";
23//LDFLAGS += "-pg"; 23//LDFLAGS += "-pg";
diff --git a/src/stable/array.h b/src/stable/array.h
index ca66213..86b57d9 100644
--- a/src/stable/array.h
+++ b/src/stable/array.h
@@ -687,6 +687,12 @@ namespace Bu
687 _hardCopy(); 687 _hardCopy();
688 core->erase( i.iPos ); 688 core->erase( i.iPos );
689 } 689 }
690
691 void erase( int i )
692 {
693 _hardCopy();
694 core->erase( i );
695 }
690 696
691 void erase( const value &v ) 697 void erase( const value &v )
692 { 698 {