Browse Source

oops, forgot std::

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@120915 91177308-0d34-0410-b5e6-96231b3b80d8
Howard Hinnant 14 năm trước cách đây
mục cha
commit
d42c4beeff
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/new.cpp

+ 1 - 1
src/new.cpp

@@ -36,7 +36,7 @@ operator new(std::size_t size) throw (std::bad_alloc)
     {
     {
         // If malloc fails and there is a new_handler,
         // If malloc fails and there is a new_handler,
         // call it to try free up memory.
         // call it to try free up memory.
-        std::new_handler nh = get_new_handler();
+        std::new_handler nh = std::get_new_handler();
         if (nh)
         if (nh)
             nh();
             nh();
         else
         else