Replaced counted_t<func_t> with counted_t<const func_t>.