Skip to content

Commit

Permalink
Fix signature for named_allocate
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeckingsale committed Jan 17, 2025
1 parent b8c620d commit 46d1df3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/umpire/strategy/NamedAllocationStrategy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void* NamedAllocationStrategy::allocate(std::size_t bytes)
return m_allocator->allocate_internal(bytes);
}

void* NamedAllocationStrategy::allocate_named(std::string name, std::size_t bytes)
void* NamedAllocationStrategy::allocate_named(const std::string& name, std::size_t bytes)
{
return m_allocator->allocate_named_internal(name, bytes);
}
Expand Down
2 changes: 1 addition & 1 deletion src/umpire/strategy/NamedAllocationStrategy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class NamedAllocationStrategy : public AllocationStrategy {
NamedAllocationStrategy(const std::string& name, int id, Allocator allocator);

void* allocate(std::size_t bytes) override;
void* allocate_named(std::string name, std::size_t bytes) override;
void* allocate_named(const std::string& name, std::size_t bytes) override;
void deallocate(void* ptr, std::size_t size) override;

Platform getPlatform() noexcept override;
Expand Down

0 comments on commit 46d1df3

Please sign in to comment.