79675940

Date: 2025-06-23 09:32:45
Score: 1.5
Natty:
Report link

It is about initializers.

Without inline, the initializer will be generated to the module unit interface itself and consumers won't contain the initializer.

With inline, the initializers will be generated to the TU which uses it, and the initializers have weak linkage.

Generally the former is preferred. We want the later only if we want to do some hacks to replace the initializers.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: yjjjyj