Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"std::" missing in "abs" scalar operation? #21

Open
fcarlosjr opened this issue Aug 15, 2016 · 0 comments
Open

"std::" missing in "abs" scalar operation? #21

fcarlosjr opened this issue Aug 15, 2016 · 0 comments

Comments

@fcarlosjr
Copy link

Hi Michael,

The scalar operation "abs" defined in flens/scalaroperations/abs.tcc is not working with types other than integer and complex. Whats happening is that its "evalScalarClosure" method is calling the "abs" method defined outside the std namespace.

By doing that, it invokes either the "abs" method from cstdlib header (for integers), or the one from complex header (for complex), never the one provided in cmath header (suitable for float/double types).

I solved that by simply inserting "std::" in line

return std::abs(exp.left().value());

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant