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.

Is sizeof in C++ evaluated at compilation time or run time?

For example result of this code snippet depends on which machine: the compiler machine or the machine executable file works? …

c++ runtime sizeof compile-time
How can I print the result of sizeof() at compile time in C?

How can I print the result of sizeof() at compile time in C? For now I am using a static …

c sizeof compile-time
What is compile-time polymorphism and why does it only apply to functions?

What is compile-time polymorphism and why does it only apply to functions?

c++ polymorphism compile-time
How To Get the Name of the Current Procedure/Function in Delphi (As a String)

Is it possible to obtain the name of the current procedure/function as a string, within a procedure/function? I …

delphi procedure compile-time
Detecting Endianness

I'm currently trying to create a C source code which properly handles I/O whatever the endianness of the target …

c c-preprocessor endianness compile-time
Compile-time sizeof conditional

I want to define a macro if a condition involving sizeof is true and do nothing (but still compile) if …

c c-preprocessor compile-time
How to reduce compile time with C++ templates

I'm in the process of changing part of my C++ app from using an older C type array to a …

c++ templates compile-time
compile-time function for checking type equality

I need to implement self contained compile-time function for checking type equality (function template without arguments bool eqTypes<T,…

c++ templates compile-time
Conditional compile-time inclusion/exclusion of code based on template argument(s)?

Consider the following class, with the inner struct Y being used as a type, eg. in templates, later on: template&…

c++ templates conditional-compilation compile-time
Output compile time stamp in Visual C++ executable?

How can I insert compilation timestamp information into an executable I build with Visual C++ 2005? I want to be able …

c++ visual-c++ execution compile-time