Re: [eigen] GCC-4.6 compilation problem + patch

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


ptrdiff_t is a very common thing to use so I doubt that we will think
about adding std:: everytime. I would suggest doing like we do for
size_t, that is (in Eigen/Core i  think):

namespace Eigen {
 using std::ptrdiff_t;
}

2011/5/4 Thomas Capricelli <orzel@xxxxxxxxxxxxxxx>:
>
> Sound good. I've checked here that it still compiles with older gcc and it
> does. I've applied the patch, thanks!
>
> Thomas
>
> --
>
> Thomas Capricelli <orzel@xxxxxxxxxxxxxxx>
>
> http://www.freehackers.org/thomas
>
> On Wednesday 04 May 2011 23:56:39 Anton Gladky wrote:
>
>> Hi, all
>
>>
>
>> First of all, thanks for the great library!
>
>>
>
>> But working on package for Debian (gcc-4.6), I found that "make doc"
>
>> and "make check" are both failed.
>
>> The problem is in using in some places of the code "ptrdiff_t" instead
>
>> of "std::ptrdiff_t".
>
>>
>
>> The patch is attached.
>
>>
>
>> Thank you.
>
>>
>
>> Anton Gladky
>
>>
>



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/