rbmj/612-code — comment on commit 65a10657197712c6c8320b062e1553eb24776c01
File: trajectory.cpp line 58
By rbmj:

You have to be careful doing that - that means that the variables have internal linkage and thus means it may or may not take up more memory. If the compiler is smart, it will use it to inline values and evaluate constant expressions, then the linker will take out the duplicate variables. However, if it's stupid, it will keep all the duplicates. Only with ints does the standard mandate that the compiler has to inline them. And even then, you need to have a declaration in one translation unit or you will get undefined external symbol errors. Just saying, tread carefully.