I meant the Box type itself. In C++, std::string and std::function are usually intentionally padded, so that when the data is small enough, it can fit inside the object itself, rather than storing the pointer to heap-allocated storage.
Closures have known size at compile-time, so they can be stored anywhere at all, although their types can't be named yet, so I don't think they can be stored in static memory.