avoiding forward declarations in stencil.hh

2012-01-30 Thread m...@apollinemike.com
Hey all, I'm doing some work on the stencil class and I have a programming question. I'm experimenting with the following code: class Stencil { Box dim_; SCM expr_; Drul_arrayStencil children_; etc... } and g++ gives me: rm -f ./out/articulations.dep;

Re: avoiding forward declarations in stencil.hh

2012-01-30 Thread Han-Wen Nienhuys
On Mon, Jan 30, 2012 at 6:54 AM, m...@apollinemike.com m...@apollinemike.com wrote: Hey all, I'm doing some work on the stencil class and I have a programming question. I'm experimenting with the following code: class Stencil {  Box dim_;  SCM expr_;  Drul_arrayStencil children_;

Re: avoiding forward declarations in stencil.hh

2012-01-30 Thread m...@apollinemike.com
On Jan 30, 2012, at 12:39 PM, Han-Wen Nienhuys wrote: On Mon, Jan 30, 2012 at 6:54 AM, m...@apollinemike.com m...@apollinemike.com wrote: Hey all, I'm doing some work on the stencil class and I have a programming question. I'm experimenting with the following code: class Stencil {

Re: avoiding forward declarations in stencil.hh

2012-01-30 Thread Graham Percival
On Mon, Jan 30, 2012 at 12:56:50PM +0100, m...@apollinemike.com wrote: The problem is that the file in question is stencil.hh. I got around it by using Drul_arraySCM and having the drul arrayed populated with smobified stencils. I hope that my 6e2e1d6a13aba88a3a8eecc0d46f96ad245c152a didn't

Re: avoiding forward declarations in stencil.hh

2012-01-30 Thread David Kastrup
Graham Percival gra...@percival-music.ca writes: On Mon, Jan 30, 2012 at 12:56:50PM +0100, m...@apollinemike.com wrote: The problem is that the file in question is stencil.hh. I got around it by using Drul_arraySCM and having the drul arrayed populated with smobified stencils. I hope that

Re: avoiding forward declarations in stencil.hh

2012-01-30 Thread m...@apollinemike.com
On Jan 30, 2012, at 2:49 PM, David Kastrup wrote: logical impossibility This is all I needed to know - thanks! Cheers, MS ___ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel

Re: avoiding forward declarations in stencil.hh

2012-01-30 Thread David Kastrup
m...@apollinemike.com m...@apollinemike.com writes: On Jan 30, 2012, at 2:49 PM, David Kastrup wrote: logical impossibility This is all I needed to know - thanks! Well, it forces sizeof(x) = 2*sizeof(x) and we know sizeof(x)= 0, so it is not logically impossible as long as the structure

Re: avoiding forward declarations in stencil.hh

2012-01-30 Thread David Kastrup
David Kastrup d...@gnu.org writes: m...@apollinemike.com m...@apollinemike.com writes: On Jan 30, 2012, at 2:49 PM, David Kastrup wrote: logical impossibility This is all I needed to know - thanks! Well, it forces sizeof(x) = 2*sizeof(x) sizeof(x) = 2*sizeof(x) of course. and we know