| Anonymous | Login | Signup for a new account | 11-10-2008 11:08 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 | |||||||
| 0001115 | [uClibc++] Other | major | always | 12-13-06 02:03 | 12-15-06 03:50 | |||||||
| Reporter | peter_schueller | View Status | public | |||||||||
| Assigned To | gkajmowi | |||||||||||
| Priority | normal | Resolution | open | |||||||||
| Status | feedback | Product Version | 0.2.0 | |||||||||
| Summary | 0001115: missing operator= in auto_ptr | |||||||||||
| Description |
The operator= I submit in the patch is missing from auto_ptr leading to the following code being incompileable: typedef std::auto_ptr<Foo> FooPtr; FooPtr x(bar); FooPtr y( FooPtr( x ) ); |
|||||||||||
| Additional Information |
patch: Index: include/memory =================================================================== --- include/memory (revision 1809) +++ include/memory (revision 1810) @@ -148,6 +148,14 @@ object = p.release(); return *this; } + auto_ptr& operator=(auto_ptr_ref<T> p) throw() { + if(p.p == object){ + return *this; + } + delete object; + object = p.p; + return *this; + } ~auto_ptr(){ delete object; } |
|||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
| Copyright © 2000 - 2006 Mantis Group |