Skip to content

Commit

Permalink
1554 fixed to string
Browse files Browse the repository at this point in the history
  • Loading branch information
kladkogex authored Nov 25, 2023
1 parent 86f4e23 commit 7f5fa4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thirdparty/lru_ordered_memory_constrained_cache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace cache {
size_t item_size = _cache_items_sizes_map.at(key);
if (item_size > _total_bytes) {
throw std::underflow_error("Item size more than total bytes" +
to_string(item_size) + ":" + to_string(_total_bytes));
std::to_string(item_size) + ":" + to_string(_total_bytes));
}
_total_bytes -= item_size;
_cache_items_list.erase(it->second);
Expand All @@ -69,7 +69,7 @@ namespace cache {
size_t item_size = _cache_items_sizes_map.at(last->first);
if ( item_size > _total_bytes ) {
throw std::underflow_error( "Item size more than total bytes" +
to_string( item_size ) + ":" +
std::to_string( item_size ) + ":" +
to_string( _total_bytes ) );
}
_total_bytes -= item_size;
Expand Down

0 comments on commit 7f5fa4e

Please sign in to comment.