2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-19 04:22:09 +00:00

added boost_math_std_using to trunc overload [windows]

This commit is contained in:
mzhelyez
2025-09-09 21:35:57 +02:00
parent 66175e3d42
commit 7535a6ef23
2 changed files with 4 additions and 1 deletions

4
.gitignore vendored
View File

@@ -13,7 +13,9 @@ build/*
#*.svg #*.svg
tools/bin/** tools/bin/**
.idea/* .idea/*
# autogenerated for table in reverse mode docs
doc/differentiation/compilation_table.txt
test/test_reverse_mode_autodiff_special_functions_compile/generated_jam_compile_commands.txt
# CMake Related Options # CMake Related Options
*.a *.a
*.o *.o

View File

@@ -810,6 +810,7 @@ struct fmod_left_float_expr
} }
static const inner_t derivative(const inner_t &argv, const inner_t & /*v*/, const RealType &constant) static const inner_t derivative(const inner_t &argv, const inner_t & /*v*/, const RealType &constant)
{ {
BOOST_MATH_STD_USING
return static_cast<RealType>(-1.0) * trunc(constant / argv); return static_cast<RealType>(-1.0) * trunc(constant / argv);
} }
}; };