Project

General

Profile

Bug #948

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

Added by Rogers, Chris over 9 years ago. Updated over 9 years ago.

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.

#1

Updated by Rogers, Chris over 9 years ago

  • Status changed from Open to Rejected

Also available in: Atom PDF