Do I have to create a custom msg file for a vector of custom objects or can I just do n.advertise<vector<object>>("object",100); if object.msg exists?

Thanks,
Robbie Plankenhorn