~ubuntu-branches/debian/jessie/gsmlib/jessie

« back to all changes in this revision

Viewing changes to gsmlib/gsm_map_key.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2006-05-20 21:54:42 UTC
  • mfrom: (3.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060520215442-nb9iiu95mzkqfejf
Tags: 1.10-10
FTBFS with G++ 4.1: extra qualifications (Closes: #356109)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
  template <class SortedStore> class MapKey
29
29
  {
 
30
  public:
30
31
    SortedStore &_myStore;   // my store
31
32
    // different type keys
32
33
    Address _addressKey;
45
46
    MapKey(SortedStore &myStore, string key) :
46
47
      _myStore(myStore), _strKey(key) {}
47
48
 
 
49
/*
48
50
    friend
49
51
    bool operator< 
50
52
#ifndef WIN32
59
61
#endif
60
62
                          (const MapKey<SortedStore> &x,
61
63
                       const MapKey<SortedStore> &y);
 
64
*/
62
65
  };
63
66
 
64
67
  // compare two keys
72
75
  // MapKey members
73
76
  
74
77
  template <class SortedStore>
75
 
    bool gsmlib::operator<(const MapKey<SortedStore> &x,
 
78
    bool operator<(const MapKey<SortedStore> &x,
76
79
                           const MapKey<SortedStore> &y)
77
80
    {
78
81
      assert(&x._myStore == &y._myStore);
97
100
    }
98
101
 
99
102
  template <class SortedStore>
100
 
    bool gsmlib::operator==(const MapKey<SortedStore> &x,
 
103
    bool operator==(const MapKey<SortedStore> &x,
101
104
                            const MapKey<SortedStore> &y)
102
105
    {
103
106
      assert(&x._myStore == &y._myStore);