cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

Re: [cURLpp] [Fwd: Compilation fixes from Bob Ham <rah@bash.sh> - it shouldn't be like this :)]

From: Piotr Dobrogost <curlpp_at_2008.autoera.pl>
Date: Mon, 24 Nov 2008 12:29:10 +0100

Brad

Brad Hubbard wrote:
 
> Piotr Dobrogost wrote:
>> From above one can see we really need them all :) I'd propose to add using namespace std in all examples and remove all qualifications to std namespace (std::).
> I personally would lean the other way, the std:: qualifier makes it far
> more clear what you are doing and does not pollute the global namespace.
> You could also consider "using std::memcpy;" etc. to keep the global
> namespace cleaner.

It's hard to say we pollute global namespace as our examples are such a short and self-contained.
We could use several using-declarations instead of one using-directive but I think we shouldn't as this makes examples longer and adds no value in case of our short, self-contained examples.
 
> The headers need to be tidied up for g++ 4.3.0 anyway, it is far
> stricter on where headers are included and requires the programmer be
> more specific, From memory the headers in question were cstdlib and
> cstring and they had to be included in multiple places where they
> currently are available as a side-effect of another include.

Have you spotted other places in addition to these corrected by Bob?

Regards
Piotr Dobrogost
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2008-11-24

These mail archives are generated by hypermail.

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

File upload with ASP.NET