[Insight-developers] std::slist and ITK - making portable
Mathieu Malaterre
mathieu.malaterre at kitware.com
Mon Dec 11 15:10:40 EST 2006
As far as I remember the conclusion was that this is not portable,
since not part of stl. It should be included with SGI STL
implementation, and as far as I know should have a license compatible
with ITK.
This could be fun to do. I would suggest to have a look at what brad
king did for making `hash_map` available in ITK (see
Utilities/kwsys/hash_map.hxx)
-M
Gaëtan Lehmann wrote:
>
> Hi,
>
> I'm back to that problem, after a few months :-)
> slist is not defined in std namespace with gcc - it is defined in
> __gnu_cxx namespace.
>
> I guess that using __gnu_cxx::slist is not really portable.
>
> Can someone help me to make it more portable ? I'm not familiar with the
> preprocessor for this kind of task.
>
> Thanks,
>
> Gaetan
>
>
>
> Le Thu, 03 Aug 2006 11:38:50 +0200, Peter Cech <pcech at vision.ee.ethz.ch>
> a écrit:
>
>> Despite being in the std:: namespace, it is an extension, not part of
>> the C++98 standard (and AFAIK not part of TR1 either). Anyway, nothing
>> that you cannot solve with some #ifdefs.
>>
>> On Wed, Aug 02, 2006 at 19:05:30 -0400, Bill Lorensen wrote:
>>> I think it is part of stl and should be OK to use.
>>>
>>> At 06:15 AM 8/2/2006, Gaetan Lehmann wrote:
>>>
>>> >Hi,
>>> >
>>> >I would like to know if std::slist<> can be used without problem to
>>> >implement a new ITK filter. It seems to be less common than
>>> std::list, and
>>> >I'm not sure it is supported by all the compilers supported by TIK.
>>> >
>>> >Thanks,
>>> >
>>> >Gaetan
>>> >
>>> >--
>>> >Gaëtan Lehmann
>>> >Biologie du Développement et de la Reproduction
>>> >INRA de Jouy-en-Josas (France)
>>> >tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
>>> >http://voxel.jouy.inra.fr
>>> >_______________________________________________
>>> >Insight-developers mailing list
>>> >Insight-developers at itk.org
>>> >http://www.itk.org/mailman/listinfo/insight-developers
>>>
>>> _______________________________________________
>>> Insight-developers mailing list
>>> Insight-developers at itk.org
>>> http://www.itk.org/mailman/listinfo/insight-developers
>> _______________________________________________
>> Insight-developers mailing list
>> Insight-developers at itk.org
>> http://www.itk.org/mailman/listinfo/insight-developers
>
>
>
> --Gaëtan Lehmann
> Biologie du Développement et de la Reproduction
> INRA de Jouy-en-Josas (France)
> tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
> http://voxel.jouy.inra.fr
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>
More information about the Insight-developers
mailing list