[Top][All Lists]
[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
- Digger width increased., Gervase Lam, 2002/10/13
- Fun Windows Errors, Neil Hotmail, 2002/10/14
- Re: Fun Windows Errors, David Philippi, 2002/10/14
- Re: Fun Windows Errors, Ingo Ruhnke, 2002/10/14
- Re: Fun Windows Errors, Neil Hotmail, 2002/10/14
- Re: Fun Windows Errors, Ingo Ruhnke, 2002/10/14
- More (Windows) Errors, Neil Hotmail, 2002/10/18
- Re: More (Windows) Errors, David Philippi, 2002/10/18
- Re: More (Windows) Errors, Ingo Ruhnke, 2002/10/18
- Re: More (Windows) Errors,
David Philippi <=
- Re: More (Windows) Errors, David Philippi, 2002/10/19
- Re: More (Windows) Errors, Ingo Ruhnke, 2002/10/19
- Re: More (Windows) Errors, David Philippi, 2002/10/19
- Re: More (Windows) Errors, David Philippi, 2002/10/19
- Re: More (Windows) Errors, David Philippi, 2002/10/19