Poznámka
Na prístup k tejto stránke sa vyžaduje oprávnenie. Môžete sa skúsiť prihlásiť alebo zmeniť adresáre.
Na prístup k tejto stránke sa vyžaduje oprávnenie. Môžete skúsiť zmeniť adresáre.
'sizeof' is not supported with /clr:safe
Remarks
The output file of a /clr:safe compilation is a file that is verifiably type safe, and sizeof is not supported because the return value of the sizeof operator is size_t, whose size varies depending on the operating system.
For more information, see,
Example
The following example generates C3382.
// C3382.cpp
// compile with: /clr:safe
int main() {
sizeof( char ); // C3382
}