alloc
parent
2ad3bddc17
commit
aadf4a5728
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.25)
|
||||
project(lilfbtf5 VERSION 0.1.5)
|
||||
project(lilfbtf5 VERSION 0.1.6)
|
||||
|
||||
option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF)
|
||||
option(ENABLE_UBSAN "Enable the ub sanitizer" OFF)
|
||||
|
|
2
libs/BLT
2
libs/BLT
|
@ -1 +1 @@
|
|||
Subproject commit 55bae674077139b78eeeb6c94361662ec2b2a8be
|
||||
Subproject commit 7e7e542f51f75dbca6eb86f01abf8c5a2164f706
|
|
@ -47,7 +47,7 @@ int main(int argc, const char** argv)
|
|||
|
||||
if (args.contains("--tests"))
|
||||
{
|
||||
fb::test2();
|
||||
//fb::test2();
|
||||
fb::test3();
|
||||
|
||||
BLT_PRINT_PROFILE("Tree Construction");
|
||||
|
|
|
@ -255,9 +255,8 @@ namespace fb
|
|||
{
|
||||
base_t* type = nullptr;
|
||||
node_t** children = nullptr;
|
||||
type_t type_value;
|
||||
|
||||
explicit node_t(type_t type): type(create_node_type(type)), type_value(type)
|
||||
explicit node_t(type_t type): type(create_node_type(type))
|
||||
{
|
||||
if (this->type == nullptr)
|
||||
throw std::bad_alloc();
|
||||
|
@ -400,7 +399,7 @@ namespace fb
|
|||
|
||||
void run2()
|
||||
{
|
||||
constexpr auto size = 512;
|
||||
constexpr auto size = 1;
|
||||
constexpr auto tree_size = 17;
|
||||
engine.reset();
|
||||
tree3 love[size];
|
||||
|
@ -435,7 +434,7 @@ namespace fb
|
|||
|
||||
delete[] cum;
|
||||
|
||||
run();
|
||||
//run();
|
||||
run2();
|
||||
|
||||
// using testing = blt::size_t;
|
||||
|
|
Loading…
Reference in New Issue