Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. The One
Definition Rule (ODR) is an important concept in the C++ programming
language. It's defined in the ISO C++ Standard(ISO/IEC 14882) 2003, at
section 3.2. In short the ODR states that: 1. 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. 2. In the entire program, an object or
non-inline function cannot have more than one definition; if an object
or function is used, it must have exactly one definition. You can
declare an object or function that is never used, in which case you
don't have to provide a definition. In no event can there be more than
one definition.