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

missing std namespace #1994

Merged
merged 1 commit into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion arbor/include/arbor/math.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion modcc/symdiff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class SymPDiffVisitor: public Visitor, public error_stack {
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 {
Expand Down