How to create a temporary value-initialized T*
in standard C++?
void foo( int );
void bar( int * );
int main()
{
foo( int() ); // works. a temporary int - value initialized.
bar( ??? ); // how to create a temporary int *?
}
Just out of curiousity.