c++ Programming Glossary: forbidden
Converting Derived** to Base** and Derived* to Base* http://stackoverflow.com/questions/11264587/converting-derived-to-base-and-derived-to-base the issue of converting a Derived to a Base and why it is forbidden and I got that the problem is that you could assign to a Base..
pointer comparisons ??gt;??with one before the first element of an array object http://stackoverflow.com/questions/16234626/pointer-comparisons-with-one-before-the-first-element-of-an-array-object with one before the first element of an array object is forbidden. example1 int array 10 int ptr for ptr array 9 ptr array 1 ptr.. array 9 ptr array ptr ... 1 Are both example1 and example2 forbidden 2 Is there proof from the C standard that comparing pointer.. with one before the first element of an array object is forbidden c c pointers comparison share improve this question Yes..
Your preferred C/C++ header policy for big projects? http://stackoverflow.com/questions/181921/your-preferred-c-c-header-policy-for-big-projects to follow one of these two excessive rules #include are forbidden in .h files it is up to each .c file to include all the headers..
C++0x memory model and speculative loads/stores http://stackoverflow.com/questions/2001913/c0x-memory-model-and-speculative-loads-stores there in the original code and the transformation is thus forbidden. The same argument applies to Example 3.1.3 in N2197 as well...
Why does C++ allow variable length arrays that aren't dynamically allocated? http://stackoverflow.com/questions/2610449/why-does-c-allow-variable-length-arrays-that-arent-dynamically-allocated will compile though I get a pedantic warning saying it's forbidden by ISO C . I know that it's obviously a bad idea to do it if..
Loading a dll from a dll? http://stackoverflow.com/questions/2674736/loading-a-dll-from-a-dll its termination code. emphasis added So this on why it is forbidden for a clear more in depth explanation see this and this for..
Why does C++ not allow inherited friendship? http://stackoverflow.com/questions/3561648/why-does-c-not-allow-inherited-friendship in C I understand transitivity and reflexivity being forbidden for obvious reasons I say this only to head off simple FAQ quote..
Passing array of structures to function c++ http://stackoverflow.com/questions/3613302/passing-array-of-structures-to-function-c enter ISO undefined behavior territory you may understand forbidden territory if you prefer . It's a challenge as things are complicated..
Determining the alignment of C/C++ structures in relation to its members http://stackoverflow.com/questions/364483/determining-the-alignment-of-c-c-structures-in-relation-to-its-members be specialized for void and returns 0 in that case this is forbidden in the c draft Note from developers strictly speaking you should..
std::wstring VS std::string http://stackoverflow.com/questions/402283/stdwstring-vs-stdstring with unicode chars because some combination of chars is forbidden in UTF 8. On Windows On Windows this is a bit different. Win32..
Where and why do I have to put the “template” and “typename” keywords? http://stackoverflow.com/questions/610245/where-and-why-do-i-have-to-put-the-template-and-typename-keywords iterator int value_type v In some cases the keywords are forbidden as detailed below On the name of a dependent base class you..
Using local classes with STL algorithms http://stackoverflow.com/questions/742607/using-local-classes-with-stl-algorithms algorithm share improve this question It's explicitly forbidden by the C 98 03 standard. C 11 remove that restriction. To be..
What happens to global variables declared in a DLL? http://stackoverflow.com/questions/75701/what-happens-to-global-variables-declared-in-a-dll of the order of destruction 2 There are things that are forbidden to do in the DllMain. Those things are probably forbidden too.. forbidden to do in the DllMain. Those things are probably forbidden too in the constructors. So avoid locking something. See Raymond..
Embed assembler to manipulate 64-bit registers in portable C++ http://stackoverflow.com/questions/7859568/embed-assembler-to-manipulate-64-bit-registers-in-portable-c 64 bit instructions in a 32 bit executable I think this is forbidden. As I understand it a 32 bit executable runs in 32 bit mode..
Can standard container templates be instantiated with incomplete types? http://stackoverflow.com/questions/8329826/can-standard-container-templates-be-instantiated-with-incomplete-types components also 17.6.4.8 Or is a library implementation forbidden to incur template instantiations that might fail for incomplete..
What can and can't I specialize in the std namespace? http://stackoverflow.com/questions/8513417/what-can-and-cant-i-specialize-in-the-std-namespace However there are a few templates that I am explicitly forbidden from specializing. What templates can and can't I specialize..
Is there ever a need for a “do {…} while ( )” loop? http://stackoverflow.com/questions/994905/is-there-ever-a-need-for-a-do-while-loop involving loops. Let me ask another way suppose you were forbidden from using do while is there a realistic example where this..
|