Preguntas con la etiqueta [language-lawyer]
Lista
language-lawyer preguntas
¿Cuándo la invocación de una función miembro a través de un puntero nulo da como resultado un comportamiento indefinido?
2
respuestas
130
votos
18.1k
vistas
Considere el siguiente código: #include <iostream> struct foo { // (a): void bar() { std::cout << "gman was here" << std::endl; } // (b): void baz() { x = 5;
¿Es `reinterpret_cast`ing entre el puntero vectorial SIMD de hardware y el tipo correspondiente un comportamiento indefinido?
2
respuestas
10
votos
2.6k
vistas
¿ Es legal acceder reinterpret_casta float*objetos a través de un tipo de puntero diferente?__m256*float constexpr size_t _m256_float_step_sz = sizeof(__m256) / sizeof(float); alignas(__m256) float stack_store[100 * _m256_float_step_sz ]{}; __m256& hwvec1 =