Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
|
CuriousThinker's comments
login
CuriousThinker
on Aug 9, 2017
|
parent
|
context
|
next
[–]
| on:
Show HN: C++ runtime/compile-time detection in con...
Thanks!
CuriousThinker
on Aug 8, 2017
|
parent
|
context
|
prev
|
next
[–]
| on:
Show HN: C++ runtime/compile-time detection in con...
Yes that's exactly what's happening under the hood. I'm definitely looking forward to the constexpr operator being accepted!
CuriousThinker
on Aug 8, 2017
|
parent
|
context
|
prev
|
next
[–]
| on:
Show HN: C++ runtime/compile-time detection in con...
Thanks for catching that!
CuriousThinker
on Aug 8, 2017
|
parent
|
context
|
prev
[–]
| on:
Show HN: C++ runtime/compile-time detection in con...
I discuss the approach more in depth here:
http://saadahmad.ca/detecting-evaluation-context-inside-cons...
nickelbox
on Aug 8, 2017
|
parent
[–]
So would a valid tl;dr be, "modify the compiled program to catch any invocations not evaluated at compile time and make them return the correct value?"
CuriousThinker
on Aug 8, 2017
|
root
|
parent
[–]
That is basically it :)
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: