netlink: Use stdplus function_view
We are trying to get rid of function2 dependencies.
Change-Id: I7cd750b279e7e83b2c71f1c6cc53a114daf4532c
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/netlink.hpp b/src/netlink.hpp
index b6b89d9..eb1ebd9 100644
--- a/src/netlink.hpp
+++ b/src/netlink.hpp
@@ -2,7 +2,7 @@
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
-#include <function2/function2.hpp>
+#include <stdplus/function_view.hpp>
#include <stdplus/raw.hpp>
#include <string_view>
@@ -19,7 +19,7 @@
/* @brief Called on each nlmsg received on the socket
*/
using ReceiveCallback =
- fu2::function_view<void(const nlmsghdr&, std::string_view)>;
+ stdplus::function_view<void(const nlmsghdr&, std::string_view)>;
namespace detail
{