Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
lvass
on Nov 28, 2022
|
parent
|
context
|
favorite
| on:
Const vs. constexpr vs. consteval vs. constinit in...
How does one assert bar() or better yet, an arbitrary expression you place there, is pure?
anonymoushn
on Nov 28, 2022
[–]
Well, the compiler attempts to evaluate bar(), and if it cannot, you get a compile error
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: