News for hackers. Stuff that matters.
Re:Mandelbrot set in C++11 by sbmassey on Thursday February 28, 2013 @10:02AM (#5298905)
You can leave out the explicit return type.

  auto func = [] (std::complex<double> z, std::complex<double> c) { return z * z + c; };
You could also typedef the number type somewhere:

  typedef std::complex<double> Complex;
  // ...
  auto func = [] (Complex z, Complex c) { return z * z + c; };
I think that last one looks ok.

There are no comments on this comment yet.