Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有
void func(foo & obj)
我有
foo * object;
我如何object成为一个论点func?
object
func
只需取消引用它:
func( *object );