// ---------------------------------------------------------------------- // // autoptr.cc - Do we support std::auto_ptr<>? // // History: // 16-Jan-2001 WEB Initial draft // 25-Apr-2001 WEB s//"ISOcxx\/ISOcxxSyntax.hh"/ // // ---------------------------------------------------------------------- #include "ISOcxx/ISOcxxSyntax.hh" #include int f( std::auto_ptr ap ) { return *ap; } int main() { return f( std::auto_ptr( new int(0) ) ); } // main()