Top "Compile-time" questions

Refers to the information that can be inferred or known at the time source code is compiled, as opposed to information that can only be inferred when source code is run.

Encrypting / obfuscating a string literal at compile-time

I want to encrypt/encode a string at compile time so that the original string does not appear in the …

c++ string templates metaprogramming compile-time
Can I make a constant from a compile-time env variable in csharp?

We use Hudson to build our projects, and Hudson conveniently defines environment variables like "%BUILD_NUMBER%" at compile time. I'd …

c# environment-variables compile-time
Determining struct member byte-offsets at compile-time?

I want to find the byte offset of a struct member at compile-time. For example: struct vertex_t { vec3_t …

c++ struct offset compile-time offsetof
Do math functions of constant expressions get pre-calculated at compile time?

I tend to use math functions of constant expressions for convinience and coherence (i.e log(x)/log(2) instead of …

c math compile-time
Generate unique numbers at compile time

I want to generate unique numbers for each class in my header, primes in my case primes but let's say …

c++ c++11 metaprogramming compile-time side-effects