## Bug #948

### MAUS::Complex sqrt(const double x) hides STL sqrt function

Status:

Rejected

Priority:

Normal

Assignee:

Category:

common_cpp

Target version:

Start date:

21 March 2012

Due date:

% Done:

0%

Estimated time:

Workflow:

New Issue

**Description**

I want to do something trivial like

#include <math.h> double x_sqrt = sqrt(16);

gives me a compiler error because I am blocked by

#include "src/common_cpp/Math/Complex.hh" MAUS::Complex sqrt(const double x)

I think the standard routine should trump here - i.e. if the user wants a complex in return should either give a Complex with Im(z) = 0 as argument or convert the return double to a Complex.