|
|
|
|
|
by tobz1000
2125 days ago
|
|
I believe in a talk[1] it was mentioned that Rust's const eval will support heap-allocated values (accessed as references). A quick search suggests that C++20 will also support this, although it may be safer in Rust as it can give a stronger guarantee that the static memory won't be written to. [1]https://youtu.be/wkXNm_qo8aY?t=888 |
|