kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #08059
Re: Plotting/fabricating in nanometers
On Sun, Apr 29, 2012 at 10:11:42PM -0500, Dick Hollenbeck wrote:
> Since the compiler is pretty clever in a situation like this, it has the choice of using
> the copy constructor, and I am sure gcc has something like this also:
>
>
> http://msdn.microsoft.com/en-us/library/ms364057%28VS.80%29.aspx
>
>
> Remember, there is intentionally no virtual function table pointer in this class, (I
> deliberately avoided a virtual destructor so as to avoid a virtual function table
> pointer), and its only two doubles. Not hard to construct it.
Actually g++ does it (and it also had an extension to suggest the variable used to return the value). The condition IIRC is that there should be no copy constructor (otherwise it must be called to obey copy semantic). But as you don't like nonconst references I don't like passing by value of nonatomic structures:P
Anyway is an internal utility so who cares, only these four classes use it...
--
Lorenzo Marcantonio
Logos Srl
References
-
Plotting/fabricating in nanometers
From: Lorenzo Marcantonio, 2012-04-27
-
Re: Plotting/fabricating in nanometers
From: jean-pierre charras, 2012-04-27
-
Re: Plotting/fabricating in nanometers
From: Lorenzo Marcantonio, 2012-04-28
-
Re: Plotting/fabricating in nanometers
From: jean-pierre charras, 2012-04-28
-
Re: Plotting/fabricating in nanometers
From: Lorenzo Marcantonio, 2012-04-28
-
Re: Plotting/fabricating in nanometers
From: jean-pierre charras, 2012-04-28
-
Re: Plotting/fabricating in nanometers
From: Lorenzo Marcantonio, 2012-04-29
-
Re: Plotting/fabricating in nanometers
From: Dick Hollenbeck, 2012-04-29
-
Re: Plotting/fabricating in nanometers
From: Lorenzo Marcantonio, 2012-04-29
-
Re: Plotting/fabricating in nanometers
From: Dick Hollenbeck, 2012-04-30