diff options
Diffstat (limited to 'include/jau/counting_allocator.hpp')
-rw-r--r-- | include/jau/counting_allocator.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/jau/counting_allocator.hpp b/include/jau/counting_allocator.hpp index d5b6d20..d6e9f0e 100644 --- a/include/jau/counting_allocator.hpp +++ b/include/jau/counting_allocator.hpp @@ -86,9 +86,9 @@ struct counting_allocator : public std::allocator<T> public: std::string toString(const nsize_t mem_width=0, const nsize_t count_width=0) { - return "CAlloc["/*+std::to_string(id)+", "*/+uint64DecString(memory_usage, ',', mem_width)+" bytes, alloc[balance "+ - int64DecString(alloc_balance, ',', count_width)+" = "+ - uint64DecString(alloc_count, ',', count_width)+" - "+uint64DecString(dealloc_count, ',', count_width)+"]]"; + return "CAlloc["/*+std::to_string(id)+", "*/+to_decstring(memory_usage, ',', mem_width)+" bytes, alloc[balance "+ + to_decstring(alloc_balance, ',', count_width)+" = "+ + to_decstring(alloc_count, ',', count_width)+" - "+to_decstring(dealloc_count, ',', count_width)+"]]"; } counting_allocator() noexcept |