]> git.donarmstrong.com Git - lilypond.git/commit
Issue 3201: Don't initialize dim_cache_ array via constructor syntax
authorDavid Kastrup <dak@gnu.org>
Sat, 23 Feb 2013 08:56:06 +0000 (09:56 +0100)
committerDavid Kastrup <dak@gnu.org>
Wed, 27 Feb 2013 18:18:07 +0000 (19:18 +0100)
commit22581154dd1af254e4b9113e04b620d6e7c99296
treebe089553fcd2c8ec6d53d501e47919b4d6aebcba
parent484f7292f050904b7964bee14f7ef13f8f377318
Issue 3201: Don't initialize dim_cache_ array via constructor syntax

This is not valid C++ and not even a documented GCC extension.  It is
probabably an oversight that GCC appears to be able to interpret this
in some manner.

Also creates a custom copy constructor for Dimension_cache for the
sole purpose of being able to initialize a Dimension_cache array
element-wise from a Dimension_cache array in the copy constructor of
Grob.  C++ clearly is lacking in some departments.
lily/dimension-cache.cc
lily/grob.cc
lily/include/dimension-cache.hh