Different implementations of inline functions in different translation units
问题 The C++ standard says this about ODR, as it applies to inline functions (emphasis mine): 3.2 One definition rule 3 Every program shall contain exactly one definition of every non-inline function or variable that is odr-used in that program; no diagnostic required. The definition can appear explicitly in the program, it can be found in the standard or a user-defined library, or (when appropriate) it is implicitly defined (see 12.1, 12.4 and 12.8). An inline function shall be defined in every