You typically dont hit undefined behavior (maybe technically undefined by the standard), bit you typically get hit with really annoying linker errors about duplicately defined symbols. And, yeah, annoying because of cryptic error messages.
Ive usually encoutered this most when trying to implement out of line template member functions and forget to include the inline keyword.
Ive usually encoutered this most when trying to implement out of line template member functions and forget to include the inline keyword.