Changes in libcfa/src/memory.hfa [fd54fef:aabb846]
- File:
-
- 1 edited
-
libcfa/src/memory.hfa (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/memory.hfa
rfd54fef raabb846 17 17 18 18 // Internal data object. 19 forall( T &| sized(T)) {19 forall(dtype T | sized(T)) { 20 20 struct counter_data { 21 21 unsigned int counter; … … 23 23 }; 24 24 25 forall( Args...| { void ?{}(T &, Args); })25 forall(ttype Args | { void ?{}(T &, Args); }) 26 26 void ?{}(counter_data(T) & this, Args args); 27 27 … … 31 31 32 32 // This is one of many pointers keeping this alive. 33 forall( T &| sized(T)) {33 forall(dtype T | sized(T)) { 34 34 struct counter_ptr { 35 35 counter_data(T) * data; … … 40 40 forall( | { void ^?{}(T &); }) 41 41 void ?{}(counter_ptr(T) & this, counter_ptr(T) that); 42 forall( Args...| { void ?{}(T&, Args); })42 forall(ttype Args | { void ?{}(T&, Args); }) 43 43 void ?{}(counter_ptr(T) & this, Args args); 44 44 … … 60 60 61 61 // This is the only pointer that keeps this alive. 62 forall( T &) {62 forall(dtype T) { 63 63 struct unique_ptr { 64 64 T * data; … … 68 68 void ?{}(unique_ptr(T) & this, zero_t); 69 69 void ?{}(unique_ptr(T) & this, unique_ptr(T) that) = void; 70 forall( | sized(T), Args...| { void ?{}(T &, Args); })70 forall( | sized(T), ttype Args | { void ?{}(T &, Args); }) 71 71 void ?{}(unique_ptr(T) & this, Args args); 72 72
Note:
See TracChangeset
for help on using the changeset viewer.