// ---------------------------------------------------------------------- // // explicit.cc - Test for 'explicit' keyword. // // History: // 29-Jun-1999 WEB Initial draft, adapted from Blitz++ // 09-Sep-1999 WEB Get rid of "unused variable" warning // 25-Apr-2001 WEB s//"ISOcxx\/ISOcxxSyntax.hh"/ // // ---------------------------------------------------------------------- #include "ISOcxx/ISOcxxSyntax.hh" struct C { explicit C( double ) { ; } int f() const { return 0; } }; // C int main() { C x( 5.0 ); return x.f(); } // main()