Module: sems Branch: master Commit: cdd6c408e60aba91f2766dc9607c32082a489aa3 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=cdd6c408e60aba91f2766dc9607c32082a489aa3
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Tue May 13 11:31:30 2014 +0200 sip: fix compile errors on osx with clang++ --- core/sip/tr_blacklist.h | 5 +++++ core/sip/trans_layer.cpp | 2 +- core/sip/trans_layer.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/core/sip/tr_blacklist.h b/core/sip/tr_blacklist.h index 3cf7116..1d27698 100644 --- a/core/sip/tr_blacklist.h +++ b/core/sip/tr_blacklist.h @@ -33,6 +33,11 @@ typedef ht_map_bucket<bl_addr,bl_entry, class blacklist_bucket : public bl_bucket_base { +protected: + bool insert(const bl_addr& k, bl_entry* v) { + return bl_bucket_base::insert(k,v); + } + public: blacklist_bucket(unsigned long id) : bl_bucket_base(id) diff --git a/core/sip/trans_layer.cpp b/core/sip/trans_layer.cpp index fbe12e2..0cbdecc 100644 --- a/core/sip/trans_layer.cpp +++ b/core/sip/trans_layer.cpp @@ -69,7 +69,7 @@ bool _trans_layer::accept_fr_without_totag = false; unsigned int _trans_layer::default_bl_ttl = DEFAULT_BL_TTL; -bool _trans_layer::less_case_i::operator () (const string& lhs, const string& rhs) +bool _trans_layer::less_case_i::operator () (const string& lhs, const string& rhs) const { return lower_cmp_n(lhs.c_str(),lhs.length(), rhs.c_str(),rhs.length()) < 0; diff --git a/core/sip/trans_layer.h b/core/sip/trans_layer.h index dd126f0..5128de0 100644 --- a/core/sip/trans_layer.h +++ b/core/sip/trans_layer.h @@ -122,7 +122,7 @@ private: trans_stats stats; sip_ua* ua; - struct less_case_i { bool operator ()(const string& lhs, const string& rhs); }; + struct less_case_i { bool operator ()(const string& lhs, const string& rhs) const; }; typedef map<string,trsp_socket*,less_case_i> prot_collection; vector<prot_collection> transports; _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
