| 118 | |
| 119 | template <int id, typename M, typename To> |
| 120 | static inline void self_bind(M from, To &to) noexcept |
| 121 | { |
| 122 | using traits = self_bind_traits<id, typename method_traits<M>::klass, M, To>; |
| 123 | if (traits::m_ == nullptr) traits::m_ = from; |
| 124 | to = traits::invoke; |
| 125 | } |
| 126 | |
| 127 | /// Use __COUNTER__ to make unique static variables on the same funtion sig. |
| 128 | /// `static_assert` to check method type when updating headers. |
nothing calls this directly
no outgoing calls
no test coverage detected