Re: [wwwdocs] New bits to porting_to

2016-02-14 Thread Jonathan Wakely
On 14/02/16 14:14 +0100, Gerald Pfeifer wrote: Hi Marek, On Wed, 10 Feb 2016, Marek Polacek wrote: +The additional overloads can cause the compiler to reject invalid code that +was accepted before. An example of such code is the below: which additional overloads does this refer to? The clu

Re: [wwwdocs] New bits to porting_to

2016-02-14 Thread Gerald Pfeifer
Hi Marek, On Wed, 10 Feb 2016, Marek Polacek wrote: > +The additional overloads can cause the compiler to reject invalid code that > +was accepted before. An example of such code is the below: which additional overloads does this refer to? > +#include > +int > +foo (unsigned x) Usua

Re: [wwwdocs] New bits to porting_to

2016-02-10 Thread Marek Polacek
On Wed, Feb 10, 2016 at 05:14:40PM +, Jonathan Wakely wrote: > On 10/02/16 17:46 +0100, Marek Polacek wrote: > >+int > >+foo (unsigned x) > >+{ > >+ abs (x); > > Let's make this "return abs (x);" so we don't have a missing return. Ok. > >+The std::auto_ptr template class was deprecated in

Re: [wwwdocs] New bits to porting_to

2016-02-10 Thread Jonathan Wakely
On 10/02/16 17:46 +0100, Marek Polacek wrote: +int +foo (unsigned x) +{ + abs (x); Let's make this "return abs (x);" so we don't have a missing return. +The std::auto_ptr template class was deprecated in C++11, so GCC s/template class/class template/

[wwwdocs] New bits to porting_to

2016-02-10 Thread Marek Polacek
Some minor issues I noticed. Ok? Index: porting_to.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/porting_to.html,v retrieving revision 1.7 diff -u -r1.7 porting_to.html --- porting_to.html 9 Feb 2016 21:06:32 - 1.7 +