Re: [Kicad-developers] [PATCH 1/2] Last argument before ellipsis may not be reference

2015-09-13 Thread Simon Richter
Hi, On 13.09.2015 17:55, Lorenzo Marcantonio wrote: > I suppose that is talking about the implementation of va_start: address > of last+sizeof of last gives the starting point of the va_list (in the > 'correct' stack direction, obviously); am I correct? Indeed. The standard is written so va_* ca

Re: [Kicad-developers] [PATCH 1/2] Last argument before ellipsis may not be reference

2015-09-13 Thread Lorenzo Marcantonio
On Sun, Sep 13, 2015 at 02:49:21PM +0200, Simon Richter wrote: > The C++ specification disallows this to permit implementations that use > the address-of operator and sizeof to calculate the address of the first > argument inside the ellipsis; sizeof(foo &) gives the size of the "foo" > class rath

[Kicad-developers] [PATCH 1/2] Last argument before ellipsis may not be reference

2015-09-13 Thread Simon Richter
The C++ specification disallows this to permit implementations that use the address-of operator and sizeof to calculate the address of the first argument inside the ellipsis; sizeof(foo &) gives the size of the "foo" class rather than the space taken up by the reference. --- pcbnew/specctra.cpp |