We should provide a custom allocator in the future so that users can use classes like std::vector and std::string without issues in the future. Another solution would be to use etl::vector and etl::string which do not allocate dynamically. cmake allows good dependency management for this. But this is a topic for another issue.
I'll change the code to use a preallocated array.
We should provide a custom allocator in the future so that users can use classes like `std::vector` and `std::string` without issues in the future. Another solution would be to use `etl::vector` and `etl::string` which do not allocate dynamically. cmake allows good dependency management for this. But this is a topic for another issue.
I'll change the code to use a preallocated array.
If you change the init value to "unnamed error" from nullptr, I'll be really happy :)
Fully aggree re allocators and etl, I tend towards etl, as we already started implementing something like it in /containers. But you are right, this is a topic for anopther issue.
If you change the init value to `"unnamed error"` from `nullptr`, I'll be really happy :)
Fully aggree re allocators and etl, I tend towards etl, as we already started implementing something like it in `/containers`. But you are right, this is a topic for anopther issue.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
more printouts for rejected packetto more printouts for rejected TC packetsseems useful, one comment below
@@ -29,12 +29,31 @@ PUSDistributor::TcMqMapIter PUSDistributor::selectDestination() {tcStatus = checker.checkPacket(currentPacket);if(tcStatus != HasReturnvaluesIF::RETURN_OK) {#if FSFW_VERBOSE_LEVEL >= 1std::string keyword;As we try to not use allocating classes in the framework during runtime, I do not see a reason not to use a
charPointer here.We should provide a custom allocator in the future so that users can use classes like
std::vectorandstd::stringwithout issues in the future. Another solution would be to useetl::vectorandetl::stringwhich do not allocate dynamically. cmake allows good dependency management for this. But this is a topic for another issue.I'll change the code to use a preallocated array.
If you change the init value to
"unnamed error"fromnullptr, I'll be really happy :)Fully aggree re allocators and etl, I tend towards etl, as we already started implementing something like it in
/containers. But you are right, this is a topic for anopther issue.done
thanks