Skip to content
Snippets Groups Projects
Unverified Commit 4ea429dc authored by boeschf's avatar boeschf Committed by GitHub
Browse files

added missing std namespace (#1994)

use std variants of sqrt and move (removes warnings, and is safer)
parent e01f799c
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ T constexpr area_circle(T r) {
// with length L, end radii r1, r2.
template <typename T>
T constexpr area_frustrum(T L, T r1, T r2) {
return pi<T> * (r1+r2) * sqrt(square(L) + square(r1-r2));
return pi<T> * (r1+r2) * std::sqrt(square(L) + square(r1-r2));
}
// Volume of conic frustrum of length L, end radii r1, r2.
......
......@@ -175,7 +175,7 @@ public:
expression_ptr dlhs = std::move(result_);
e->rhs()->accept(this);
result_ = make_expression<SubBinaryExpression>(loc, move(dlhs), result());
result_ = make_expression<SubBinaryExpression>(loc, std::move(dlhs), result());
}
void visit(MulBinaryExpression* e) override {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment