Spicy
function.h
1 // Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2 
3 #pragma once
4 
5 #include <string>
6 
7 #include <hilti/rt/extension-points.h>
8 
9 namespace hilti::rt {
10 
11 namespace detail::adl {
12 
13 template<typename R, typename... Args>
14 inline std::string to_string(std::function<R(Args...)>, adl::tag /*unused*/) {
15  return "<function>";
16 }
17 
18 template<typename R, typename... Args>
19 inline std::string to_string(R (*)(Args...), adl::tag /*unused*/) {
20  return "<function>";
21 }
22 
23 } // namespace detail::adl
24 
25 } // namespace hilti::rt
std::string to_string(T &&x)
Definition: extension-points.h:26
Definition: any.h:7