От: | Фаллопиева труба | ||
Дата: | 25.01.13 19:50 | ||
Оценка: | -2 |
class A
{
};
A *factory()
{
return new A;
}
void f()
{
A *instance = 0;
if ((instance = factory) != 0) // undefined behaviour: no sequence points here
{
// do work with instance
}
}