Friend functions that are templated must be declared and implemented within the templated class block, unlike non-templated classes such as bvector. Omnivectors are now working as desired.