And yes, this warning is for real, while the compiler has no way to decide if there is actual danger lurking. A type with internal linkage (e.g. defined in an anonymous namespace) will be treated by the linker as a separate entity on each encounter (i.e. in each distinct compilation unit). When multiple translation units start collaborating on such a type, they *might* be referring to different memory locations, while semantically the intention is to refer to the same location. And since we're dealing with a library facility here, *we* have likewise now power to ensure proper usage, so we better be cautious. |
||
|---|---|---|
| .. | ||
| backend | ||
| common | ||
| gui | ||
| include | ||
| lib | ||
| lumiera | ||
| plugin | ||
| proc | ||
| tool | ||
| .gitignore | ||
| DIR_INFO | ||
| doxygen.dox | ||
| SConscript | ||