Ignore:
Timestamp:
Jan 30, 2006 6:40:05 PM (18 years ago)
Author:
bennylp
Message:

Finished implementation of UA layer (to be tested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj++/list.hpp

    r65 r127  
    6464        const_iterator operator++()  
    6565        {  
    66             return const_iterator(node_->next);  
     66            return const_iterator((const List_Node *)node_->next);  
    6767        } 
    6868        bool operator==(const const_iterator &rhs)  
     
    100100        iterator operator++()  
    101101        {  
    102             return iterator(node_->next);  
     102            return iterator((List_Node*)node_->next);  
    103103        } 
    104104        bool operator==(const iterator &rhs)  
     
    122122 
    123123    // 
     124    // You can cast Pj_List to pj_list 
     125    // 
     126    operator pj_list&() 
     127    { 
     128        return (pj_list&)root_; 
     129    } 
     130    operator const pj_list&() 
     131    { 
     132        return (const pj_list&)root_; 
     133    } 
     134 
     135    // 
     136    // You can cast Pj_List to pj_list* too 
     137    // 
     138    operator pj_list*() 
     139    { 
     140        return (pj_list*)&root_; 
     141    } 
     142    operator const pj_list*() 
     143    { 
     144        return (const pj_list*)&root_; 
     145    } 
     146 
     147    // 
    124148    // Check if list is empty. 
    125149    //  
     
    319343        // it's because List_Node is not derived from Pj_List_Node. 
    320344        List_Node *n = (List_Node*)0; 
    321         n = n->next; n = n->prev; 
     345        n = (List_Node *)n->next; n = (List_Node *)n->prev; 
    322346    } 
    323347}; 
Note: See TracChangeset for help on using the changeset viewer.