Listing 2 Ordinary functions thatcreate temporaries

class X
   {
public:
   X();
   X(int);
   int g();
   // ...
private:
   // ...
   };

X f(int n);

void h()
   {
   // ...
   i = f(1).g();
   // ...
   j = X(3).g();
   }

// End of File