Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 314069 Details for
Bug 419505
app-text/sword-1.6.2 fails to build with gcc 4.7
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
patch proposal
sword-1.6.2-gcc47.patch (text/plain), 1.19 KB, created by
Olivier Huber
on 2012-06-03 17:52:09 UTC
(
hide
)
Description:
patch proposal
Filename:
MIME Type:
Creator:
Olivier Huber
Created:
2012-06-03 17:52:09 UTC
Size:
1.19 KB
patch
obsolete
>--- include/multimapwdef.h.orig 2004-05-04 23:01:39.000000000 +0200 >+++ include/multimapwdef.h 2012-06-03 19:25:13.826906743 +0200 >@@ -12,21 +12,21 @@ > public: > typedef std::pair<const Key, T> value_type; > T& getWithDefault(const Key& k, const T& defaultValue) { >- if (find(k) == this->end()) { >- insert(value_type(k, defaultValue)); >+ if (this->find(k) == this->end()) { >+ this->insert(value_type(k, defaultValue)); > } >- return (*(find(k))).second; >+ return (*(this->find(k))).second; > } > > T& operator[](const Key& k) { >- if (find(k) == this->end()) { >- insert(value_type(k, T())); >+ if (this->find(k) == this->end()) { >+ this->insert(value_type(k, T())); > } >- return (*(find(k))).second; >+ return (*(this->find(k))).second; > } > bool has(const Key& k, const T &val) const { >- typename std::multimap<Key, T, Compare>::const_iterator start = lower_bound(k); >- typename std::multimap<Key, T, Compare>::const_iterator end = upper_bound(k); >+ typename std::multimap<Key, T, Compare>::const_iterator start = this->lower_bound(k); >+ typename std::multimap<Key, T, Compare>::const_iterator end = this->upper_bound(k); > for (; start!=end; start++) { > if (start->second == val) > return true;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 419505
:
314067
| 314069