C++0x static assert
Asger Bruun
Generisk programmering og biblioteksudvikling. Datalogisk Institut, Københavns Universitet.
- 9. maj 2008
C++0x static assert Asger Bruun Generisk programmering og - - PowerPoint PPT Presentation
C++0x static assert Asger Bruun Generisk programmering og biblioteksudvikling. Datalogisk Institut, Kbenhavns Universitet. 9. maj 2008 The problem The standard ways in C++ to test for software assertions before compile: use the #error
1is the same as removing the explanation, not matter how internal it was
2the size of long is 32 bit in MS VC x64 code generation.
4 —
′case1::tst::ERROR 64 bit code generation not enabled supported′ to ′type′
4Boost is the only solution that works properly in namespace scope. 3MS VC x86 code generation.
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2521.pdf
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2521.pdf
http://loki-lib.sourceforge.net/index.php?n=Idioms.CompileTimeCheck
http://loki-lib.sourceforge.net/index.php?n=Idioms.CompileTimeCheck