From 82163d61260509ab4ae457ba0023540287703c9b Mon Sep 17 00:00:00 2001 From: sneaxiy <32832641+sneaxiy@users.noreply.github.com> Date: Mon, 17 Apr 2023 13:48:01 +0800 Subject: [PATCH] fix std::to_string (#52981) --- paddle/fluid/memory/allocation/mmap_allocator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/memory/allocation/mmap_allocator.cc b/paddle/fluid/memory/allocation/mmap_allocator.cc index d6a67642d09..2e091fa1b2f 100644 --- a/paddle/fluid/memory/allocation/mmap_allocator.cc +++ b/paddle/fluid/memory/allocation/mmap_allocator.cc @@ -43,7 +43,7 @@ std::string GetIPCName() { handle += std::to_string(getpid()); #endif handle += "_"; - handle += counter.fetch_add(1); + handle += std::to_string(counter.fetch_add(1)); handle += "_"; handle += std::to_string(rd()); return handle; -- GitLab