I think that the result of invoking the ensuing function pointer should be implementation defined. A JIT compiler or dynamic loader will invariably need to perform such a cast in order to jump into the machine code in memory to execute it. Obviously, this will only succeed if certain machine and OS specific requirements are met.
--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-discussion+unsubscribe@isocpp.org.
To post to this group, send email to std-dis...@isocpp.org.
Visit this group at https://groups.google.com/a/isocpp.org/group/std-discussion/.
On 29 Nov 2016, at 16:27 , Demi Obenour <demio...@gmail.com> wrote:I think that the result of invoking the ensuing function pointer should be implementation defined. A JIT compiler or dynamic loader will invariably need to perform such a cast in order to jump into the machine code in memory to execute it. Obviously, this will only succeed if certain machine and OS specific requirements are met.
On 2016–12–01, at 3:41 AM, Miro Knejp <miro....@gmail.com> wrote:He quoted my desire to have it reliably work with SFINAE/static_assert, suggesting in his reply that it's not possible. I clearly showed otherwise.
On 01 Dec 2016, at 04:48 , David Krauss <pot...@gmail.com> wrote:On 2016–12–01, at 3:41 AM, Miro Knejp <miro....@gmail.com> wrote:He quoted my desire to have it reliably work with SFINAE/static_assert, suggesting in his reply that it's not possible. I clearly showed otherwise.My intent was only to point out a technicality. It would be fairly surprising if an implementation actually didn’t SFINAE.