| Anonymous | Login | Signup for a new account | 11-10-2008 10:39 PST |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0000059 | [uClibc++] Other | major | always | 01-24-05 18:13 | 08-02-05 20:14 | ||||
| Reporter | faye2022 | View Status | public | ||||||
| Assigned To | gkajmowi | ||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | 0.1.9 | ||||||
| Summary | 0000059: Imcomplete implementation of member binding for list algorithm | ||||||||
| Description |
The following sample code will generate some errors: /root/uClibc++-0.1.9/include/functional: In member function `bool std::unary_negate<Predicate>::operator()(typename Predicate::argument_type&) const [with Predicate = std::mem_fun_t<bool, const x>]': /root/uClibc++-0.1.9/include/algorithm:52: instantiated from `InputIterator st d::find_if(InputIterator, InputIterator, Predicate) [with InputIterator = std::l ist<x*, std::allocator<x*> >::iter_list, Predicate = std::unary_negate<std::mem_ fun_t<bool, const x> >]' z.cpp:26: instantiated from here /root/uClibc++-0.1.9/include/functional:179: error: passing `const std::mem_fun_t<bool, const x>' as `this' argument of `S std::mem_fun_t<S, T>::operator()(T*) [with S = bool, T = const x]' discards qualifiers ---- The sample ---- #include <algorithm> #include <list> #include <map> using namespace std; class x { public: x(int _i = 0): i(_i) {} x(const x& _x): i(_x.i) {} bool good(void) const { return true; } private: int i; }; typedef list<x *> list_t; main() { list_t l; list_t::const_iterator p; bool ok; if ((p = find_if(l.begin(), l.end(), not1(mem_fun(&x::good)))) != l.end()) { ok = true; } } ---- The sample ---- |
||||||||
| Additional Information | This has been updated to the project leader of uClibc++. | ||||||||
| Attached Files | |||||||||
|
|
|||||||||
Notes |
|
|
(0000025) gkajmowi 01-24-05 20:31 |
This has been fixed in CVS. This is due to a lack of a const identifier on an operator. Fill will be in >=0.1.10 |
| Copyright © 2000 - 2006 Mantis Group |