Timeline for Manual memory allocation and purity
Current License: CC BY-SA 3.0
2 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 7, 2019 at 22:16 | comment | added | shuhalo | I think C++ does give you some insight into the heap. For example, memory allocation might fail and malloc/new return a null pointer. In practical terms, I don't think that a function with __attribute__((const)) should make memory allocations. | |
| Apr 9, 2012 at 4:24 | history | answered | Jerry Coffin | CC BY-SA 3.0 |