Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/memory.hfa

    rfd54fef raabb846  
    1717
    1818// Internal data object.
    19 forall(T & | sized(T)) {
     19forall(dtype T | sized(T)) {
    2020        struct counter_data {
    2121                unsigned int counter;
     
    2323        };
    2424
    25         forall(Args... | { void ?{}(T &, Args); })
     25        forall(ttype Args | { void ?{}(T &, Args); })
    2626        void ?{}(counter_data(T) & this, Args args);
    2727
     
    3131
    3232// This is one of many pointers keeping this alive.
    33 forall(T & | sized(T)) {
     33forall(dtype T | sized(T)) {
    3434        struct counter_ptr {
    3535                counter_data(T) * data;
     
    4040        forall( | { void ^?{}(T &); })
    4141        void ?{}(counter_ptr(T) & this, counter_ptr(T) that);
    42         forall(Args... | { void ?{}(T&, Args); })
     42        forall(ttype Args | { void ?{}(T&, Args); })
    4343        void ?{}(counter_ptr(T) & this, Args args);
    4444
     
    6060
    6161// This is the only pointer that keeps this alive.
    62 forall(T &) {
     62forall(dtype T) {
    6363        struct unique_ptr {
    6464                T * data;
     
    6868        void ?{}(unique_ptr(T) & this, zero_t);
    6969        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); })
    7171        void ?{}(unique_ptr(T) & this, Args args);
    7272
Note: See TracChangeset for help on using the changeset viewer.