const int& foo() {
return 42;
}
int main() {
foo();
}
Does this code have UB? Or I need to access the reference to trigger it?
const int& foo() {
return 42;
}
int main() {
foo();
}
Does this code have UB? Or I need to access the reference to trigger it?