In C++11 it is unspecified whether ptrdiff_t (and other C typedefs) are 
injected into the global namespace or not. GCC is not at fault for 
restriciting its scope to only std::ptrdiff_t.


On Friday, June 13, 2014 1:27:34 PM UTC+1, Snark wrote:
>
> Hi, 
>
> Le 12/06/2014 21:43, Julien Puydt a écrit : 
> > (2) ppl compiled. 
> > 
> > Point (2)... well... it's not a breakage if it compiles, but last time 
> > it gave issues... so there's still something to understand. 
>
> I must say this "ptrdiff_t does not name a type" issue is interesting: I 
> got rid of it by  adding the following line to 
> build/pkgs/ppl/spkg-install: 
> sed -i -e "s/ptrdiff_t/std::ptrdiff_t/g" `grep -r . -l -e "ptrdiff_t"` 
>
> It fixes the problem, but leaves me wondering why it's necessary... 
>
> Snark on #sagemath 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to