Browse code

sip: fix compile errors on osx with clang++

Raphael Coeffic authored on 13/05/2014 09:31:30
Showing 3 changed files
... ...
@@ -33,6 +33,11 @@ typedef ht_map_bucket<bl_addr,bl_entry,
33 33
 class blacklist_bucket
34 34
   : public bl_bucket_base
35 35
 {
36
+protected:
37
+  bool insert(const bl_addr& k, bl_entry* v) {
38
+    return bl_bucket_base::insert(k,v);
39
+  }
40
+
36 41
 public:
37 42
   blacklist_bucket(unsigned long id)
38 43
   : bl_bucket_base(id)
... ...
@@ -69,7 +69,7 @@
69 69
 bool _trans_layer::accept_fr_without_totag = false;
70 70
 unsigned int _trans_layer::default_bl_ttl = DEFAULT_BL_TTL;
71 71
 
72
-bool _trans_layer::less_case_i::operator () (const string& lhs, const string& rhs)
72
+bool _trans_layer::less_case_i::operator () (const string& lhs, const string& rhs) const
73 73
 {
74 74
     return lower_cmp_n(lhs.c_str(),lhs.length(),
75 75
 		       rhs.c_str(),rhs.length()) < 0;
... ...
@@ -122,7 +122,7 @@ private:
122 122
     trans_stats stats;
123 123
     sip_ua*     ua;
124 124
 
125
-    struct less_case_i { bool operator ()(const string& lhs, const string& rhs); };
125
+    struct less_case_i { bool operator ()(const string& lhs, const string& rhs) const; };
126 126
     typedef map<string,trsp_socket*,less_case_i> prot_collection;
127 127
 
128 128
     vector<prot_collection> transports;