Adjusting the answer you linked:
myVector.insert(myVector.end(), begin_binary(num), end_binary(num));
Where the begin and end functions just cast the value you want to insert. Doing it this way does increase the size of the vector (and its capacity, if necessary).