diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-06-04 11:06:19 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-07-19 11:03:26 +0800 |
commit | 85e61212ef42e649eaea444bd9cbcad4fc26d31a (patch) | |
tree | 204c4ce543748be6278faf9864f95787477a717f /indra/llmath/llcalc.h | |
parent | b981877c4a9edbd5df49517b294a84d665c59a5d (diff) |
Explicit when using function_ptr Phoenix binder
From the errors:
base type ‘float (*)(float, float) noexcept’ fails to be a struct or class type
struct functor_action : public FuncT {
^~~~~~~~~~~~~~
‘float (*)(float, float) noexcept’ is not a class, struct, or union type
struct result { typedef typename FuncT::result_type type; };
^~~~
type ‘float (*)(float, float) noexcept’ is not a direct base of
‘phoenix::functor_action<float (*)(float, float) noexcept>’
: FuncT(fptr_) {}
^
it seems that GCC, at least the ones on my system, failed to deduce that
the binder meant to be used when trying to bind the C Std Math Library's
powf and fmodf functions is of course the function pointer one
(specifically the 2 args specialisation), and not the functor one.
Diffstat (limited to 'indra/llmath/llcalc.h')
0 files changed, 0 insertions, 0 deletions