Confused about ODR (One Definition Rule)
Hi,
At the wikipedia page located here, it states the following in regards to the definition of ODR:
"# In any translation unit, a template, type, function, or object can have no more than one definition. Some of these can have any number of declarations. A definition provides an instance."
This doesn't make sense at all to me. The linker shouldn't allow you to have multiple definitions for something in the same translation unit anyway (it would complain about duplicate symbols). I basically am so confused about this definition that I really don't know what to think.
If anyone could clarify the definition above I'd appreciate it. Thank you.
--MrDoomMaster
--C++ Game Programmer
Don't forget to rate me if I was helpful!