You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
std::function vs function pointer (was ::Non-portable: Converting a function pointer to an object pointer type or vice versa is conditionally-supported)
#2
Open
aka-sps opened this issue
Mar 18, 2018
· 1 comment
INTERNATIONAL STANDARD ISO/IEC14882:2011(E) Third edition 2011-09-01
5.2.10 Reinterpret cast [expr.reinterpret.cast]
8 Converting a function pointer to an object pointer type or vice versa is conditionally-supported. The meaning of such a conversion is implementation-defined, except that if an implementation supports conversions in both directions, converting a prvalue of one type to the other type and back, possibly with different cv-qualification, shall yield the original pointer value.
The text was updated successfully, but these errors were encountered:
r35382
changed the title
Non-portable: Converting a function pointer to an object pointer type or vice versa is conditionally-supported.
std::function vs function pointer (was ::Non-portable: Converting a function pointer to an object pointer type or vice versa is conditionally-supported)
Jul 9, 2018
Currently 'void*' variable is used for user`s callback storage. So, the above report is not exactly an issue.
However, usege of function pointers instead of modern std::function approach is the topic for discussions
INTERNATIONAL STANDARD ISO/IEC14882:2011(E) Third edition 2011-09-01
The text was updated successfully, but these errors were encountered: