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::detail::adl {
10 
11 template<typename R, typename... Args>
12 inline std::string to_string(std::function<R(Args...)>, adl::tag /*unused*/) {
13  return "<function>";
14 }
15 
16 template<typename R, typename... Args>
17 inline std::string to_string(R (*)(Args...), adl::tag /*unused*/) {
18  return "<function>";
19 }
20 
21 } // namespace hilti::rt::detail::adl
std::string to_string(T &&x)
Definition: extension-points.h:26
Definition: deferred-expression.h:41