pingus-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More (Windows) Errors


From: David Philippi
Subject: Re: More (Windows) Errors
Date: Sat, 19 Oct 2002 11:03:12 +0200
User-agent: KMail/1.4.1

On Saturday 19 October 2002 02:13, Ingo Ruhnke wrote:
> the same functionality. Not sure what would be the best in this case,
> but something like:
>
> #ifdef WIN32
>     vec.insert(vec.end(), p.vec.rbegin(), p.vec.rend());
> #else
>     Vec::iterator i = vec.end();
>     vec.resize(vec.size + p.vec.size ());
>     std::copy(p.vec.rbegin(), p.vec.rend(), i);
> #endif

I'd guess that the second variant works in evey case and should be used 
without #ifdef. There shouldn't be any noticable performance difference 
between the two and while I consider the first is better style, we're 
loosing this advantage with GCC too because we have both in the code.

Bye David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]