compile-time
The mechanics of extension via free functions or member functions
Loads of C++ libraries, the standard included, allow you to adapt your objects for use in the libraries. The choice is often between a member function or a free function in the same namespace.[详细]
2023-02-16 13:51 分类:问答Compile-time checking if right shift is arithmetic on signed types
I am wondering what is the most portable way of checking whether right shift is arithmetic when operating for on signed types (e.g. whether -2 >> 1 is -1) at compile-time.[详细]
2023-02-13 07:14 分类:问答Calculating and printing factorial at compile time in C++
template<unsigned int n> struct Factorial { enum { value = n * Factorial<n-1>::value}; }; template<>[详细]
2023-02-10 06:23 分类:问答Linking against shared objects at compile time
In Windows, many .dlls come with a static .lib counterpart.My understanding is that the .lib counterpart basically contains LoadProcAddress calls so that the programmer doesn\'t have to do it him/hers[详细]
2023-02-09 21:44 分类:问答C++ class and object - memory
Whcih occupies memory, a class or an object? And, is that开发者_Go百科 at compile or execution time?[详细]
2023-02-07 04:59 分类:问答Is it possible to have a compile time check that a type is marked with the Serializable attribute
Specifically we\'re making our application compatible with the Out Of Process Session State server where all types saved 开发者_JS百科in session must be serializable.[详细]
2023-02-06 15:18 分类:问答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.[详细]
2023-01-30 12:17 分类:问答In java I want to generate a compile-time error instead of a runtime error
I\'m currently doing something like this; import java.util.*; public class TestHashMap { public static void main(String[] args) {[详细]
2023-01-26 05:55 分类:问答method compile time assertion; still not working
I need a easy way to assert inside a template that a template parameter implements a method (or one of its parent classes). I\'ve read Concept check library but is hard to find an easy example to do s[详细]
2023-01-22 14:55 分类:问答boost_assert that a parameter class implements a certain method
Sup开发者_开发知识库pose you have a certain template that takes a parameter class template <typename ConnectorClass>[详细]
2023-01-21 02:45 分类:问答