Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


On Fri, Oct 29, 2010 at 12:00 PM, Caolán McNamara <caolanm@redhat.com> wrote:
On Fri, 2010-10-29 at 11:56 +0200, Jesús Corrius wrote:
but I have a couple of questions about it:

1. We basically have two options here: use _STL::remove or
::std::remove. My first version of the patch was using _STL::remove,
but I think the plan is to get rid of STLPort in the future, so the
second option would be better.

Yes use std::remove/::std::remove. stlport redefines "stl" to be "_STL"
which is why that symbol name might appear in warnings or linker time
errors. Avoid "_STL" if at all possible :-)

2. I can make the changes for all platforms or just put it inside some
ifdefs. In the later case, we are sure that nothing will break.

Nah, I say avoid the ifdefs if possible. I don't mind picking up a few
temporary build-time breakages which are quick and easy to fix with some
extra includes of namespacing rather than end up with masses of ifdefs.

I have checked the offending code and it's always like this:

#if defined(_MSC_VER) && (_MSC_VER > 1310) && (_MSC_VER < 1500)
             remove(
 #else
             std::remove(

So it's already always std::remove in all platforms except Windows. I
will build the code with Visual Studio 2008 this evening and try to
see why can't also be std::remove there. That would be perfect and fix
the porting issue.


-- 
Jesús Corrius <jesus@softcatala.org>
Document Foundation founding member
Skype: jcorrius | Twitter: @jcorrius

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.