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.

Class in jar not found at runtime, but was used to compile

After I build this project from an ant file, I recieve a jar that contains all of the classes I …

java ant runtime java-3d compile-time
When does a constexpr function get evaluated at compile time?

Since it is possible that a function declared as constexpr can be called during run-time, under which criteria does the …

c++ c++11 runtime compile-time constexpr
error: unable to spawn process (Argument list too long) in Xcode Build

I am getting this error: "error: unable to spawn process (Argument list too long) ** ARCHIVE FAILED ** The following build commands …

swift xcode compile-time
Using std::map<K,V> where V has no usable default constructor

I have a symbol table implemented as a std::map. For the value, there is no way to legitimately construct …

c++ stl map compile-time
Compile Time Reflection in C#

I frequently write C# code that has to use magic strings to express property names. Everyone knows the problems with …

c# .net compile-time strong-typing magic-string
Can I obtain C++ type names in a constexpr way?

I would like to use the name of a type at compile time. For example, suppose I've written: constexpr size_…

c++ reflection c++14 constexpr compile-time
Checking whether an object conforms to two separate protocols in Objective-C

In Objective-C when you declare an instance variable you can check if it conforms to a protocol on assignment at …

objective-c cocoa cocoa-touch protocols compile-time
Is static_cast<T>(...) compile-time or run-time?

Is static_cast<T>(...) something that gets done at compile-time or run-time? I've googled around but I got …

c++ c++11 casting runtime compile-time
Using CRC32 algorithm to hash string at compile-time

Basically I want in my code to be able to do this: Engine.getById(WSID('some-id')); Which should get transformed …

c++ c++11 visual-studio-2012 constexpr compile-time
Calculating and printing factorial at compile time in C++

template<unsigned int n> struct Factorial { enum { value = n * Factorial<n-1>::value}; }; template<> struct …

c++ templates compile-time