3 ms·
C++ doesn't have a concept of immutable data, or data not shared by another thread, which is part of the challenge. This "region borrow checker" aids the forme
by verdagon 5y ago
C++ doesn't have a concept of immutable data, or data not shared by another thread, which is part of the challenge.
This "region borrow checker" aids the former; we can call a pure function that can regard previously shared-mutable data as temporarily immutable.
- fivea 5y ago> C++ doesn't have a concept of immutable data, or data not shared by another thread, which is part of the challenge. Does it really need it, though? In the real world C++ apps already use higher-level constructs to handle this sort of semantics. For instance, Qt offers it's moveToThread member function to specify thread affinity. What problem does this actually solve?