I suggest overloading the method:
void foo(double otherParameter);
void foo(double otherParameter, std::vector<int>& vector);
inline void foo(double otherParameter)
{
std::vector<int> dummy;
foo(otherParameter, dummy);
}
An alternative design that explicitly states what vectorthe / out option parameter is is:
void foo(double parameter, std::vector<int>* vector = 0);
, - , .