From ad155e169d9788faebd8729e0ebed2351001fa6b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 5 Sep 2020 22:58:38 -0700 Subject: [PATCH] ircd::spirit: Replace boost::function with std::function for indirect call optimizations. --- include/ircd/spirit.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/include/ircd/spirit.h b/include/ircd/spirit.h index ff55ac55b..cffe25e47 100644 --- a/include/ircd/spirit.h +++ b/include/ircd/spirit.h @@ -39,6 +39,17 @@ #include #pragma GCC visibility push (internal) + +namespace boost::spirit::qi +{ + using std::function; +} + +namespace boost::spirit::karma +{ + using std::function; +} + #include #include #include @@ -50,8 +61,8 @@ #include #include #include -#pragma GCC visibility pop +#pragma GCC visibility pop #pragma clang attribute pop #pragma clang attribute pop