diff --git a/CMakeLists.txt b/CMakeLists.txt index 967684f..2c01ac4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(blt-gp VERSION 0.1.38) +project(blt-gp VERSION 0.1.39) include(CTest) diff --git a/include/blt/gp/fwdecl.h b/include/blt/gp/fwdecl.h index 8311bac..5e751e2 100644 --- a/include/blt/gp/fwdecl.h +++ b/include/blt/gp/fwdecl.h @@ -28,6 +28,7 @@ namespace blt::gp { +#ifdef BLT_TRACK_ALLOCATIONS inline allocation_tracker_t tracker; inline call_tracker_t crossover_calls; inline call_tracker_t mutation_calls; @@ -35,6 +36,7 @@ namespace blt::gp inline call_tracker_t crossover_allocations; inline call_tracker_t mutation_allocations; inline call_tracker_t reproduction_allocations; +#endif class gp_program; @@ -66,9 +68,14 @@ namespace blt::gp template class tracked_allocator_t; - + +#ifdef BLT_TRACK_ALLOCATIONS template using tracked_vector = std::vector>; +#else + template + using tracked_vector = std::vector; +#endif // using operation_vector_t = tracked_vector; // using individual_vector_t = tracked_vector>;