Index: uspace/lib/cpp/include/impl/functional.hpp
===================================================================
--- uspace/lib/cpp/include/impl/functional.hpp	(revision 9c00022939cd6fe804ba18bb99d8efedb49e0fce)
+++ uspace/lib/cpp/include/impl/functional.hpp	(revision 55540fca98e0dee5ef115f2235fa2ff58bc65f27)
@@ -1045,4 +1045,32 @@
 
     /**
+     * 20.9.12.2.6, null pointer comparisons:
+     */
+
+    template<class R, class... Args>
+    bool operator==(const function<R(Args...)>& f, nullptr_t) noexcept
+    {
+        return !f;
+    }
+
+    template<class R, class... Args>
+    bool operator==(nullptr_t, const function<R(Args...)>& f) noexcept
+    {
+        return !f;
+    }
+
+    template<class R, class... Args>
+    bool operator!=(const function<R(Args...)>& f, nullptr_t) noexcept
+    {
+        return (bool)f;
+    }
+
+    template<class R, class... Args>
+    bool operator!=(nullptr_t, const function<R(Args...)>& f) noexcept
+    {
+        return (bool)f;
+    }
+
+    /**
      * 20.9.12.2.7, specialized algorithms:
      */
@@ -1054,31 +1082,8 @@
     }
 
-    /**
-     * 20.9.12.2.6, null pointer comparisons:
-     */
-
-    template<class R, class... Args>
-    bool operator==(const function<R(Args...)>& f, nullptr_t) noexcept
-    {
-        return !f;
-    }
-
-    template<class R, class... Args>
-    bool operator==(nullptr_t, const function<R(Args...)>& f) noexcept
-    {
-        return !f;
-    }
-
-    template<class R, class... Args>
-    bool operator!=(const function<R(Args...)>& f, nullptr_t) noexcept
-    {
-        return (bool)f;
-    }
-
-    template<class R, class... Args>
-    bool operator!=(nullptr_t, const function<R(Args...)>& f) noexcept
-    {
-        return (bool)f;
-    }
+    template<class R, class... Args, class Alloc>
+    struct uses_allocator<function<R(Args...)>, Alloc>
+        : true_type
+    { /* DUMMY BODY */ };
 
     /**
