cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

[cURLpp] 0.7.2 clone_ptr bug

From: Piotr Niemcunowicz <piotr.niemcunowicz_at_gmail.com>
Date: Sun, 10 Feb 2008 20:58:15 +0100

Hi,

just for completeness:
missing return in clone_ptr::release();

I also suggest that operator->() should use assert() instead of if
statement, just like auto_ptr - zero cost pointer wrapper.

--
PN

--- ../original/utilspp/clone_ptr.hpp 2008-02-07 02:28:00.000000000 +0100
+++ utilspp/clone_ptr.hpp 2008-02-10 20:45:25.000000000 +0100
@@ -84,6 +84,7 @@
     {
       T * r = value_;
       value_ = NULL;
+ return r;
     }
 
   private:

_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2008-02-10

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET