www.digitalmars.com         C & C++   DMDScript  

c++.beta - ellipsis conversion

void f(const double *)
{ }

void f(...)
{ }

int main()
{
  f(static_cast<const int *>(0));
  // Error: need explicit cast for function parameter 1 to get
  // from: int const *
  // to  : double const *
}


Extracted from Boost's optional tests.


bye, Christof

-- 
http://cmeerw.org                                 JID: cmeerw jabber.at
mailto cmeerw at web.de

...and what have you contributed to the Net?
Jun 14 2003