Boost logo

Boost :

From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-10-23 03:40:07


Daniel Frey wrote:
>
> #include <iostream>
> using namespace std;
>
> struct X
> {
> X() { cout << "X"; }
> X( const X& ) { cout << "C"; }
> };
>
> X f()
> {
> return X();
> }
>
> X g()
> {
> X x;
> return x;
> }
>
> int main()
> {
> X x1( f() ); cout << endl;
> X x2( g() ); cout << endl;
> }
>
> Regards, Daniel
>

One more for the list...

Visual Age C++ 5.02:
X
X

Markus


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk