diff options
author | David Kastrup <dak@gnu.org> | 2013-02-23 09:56:06 +0100 |
---|---|---|
committer | David Kastrup <dak@gnu.org> | 2013-02-27 19:18:07 +0100 |
commit | 22581154dd1af254e4b9113e04b620d6e7c99296 (patch) | |
tree | be089553fcd2c8ec6d53d501e47919b4d6aebcba /lily/include | |
parent | 484f7292f050904b7964bee14f7ef13f8f377318 (diff) |
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.
Diffstat (limited to 'lily/include')
-rw-r--r-- | lily/include/dimension-cache.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lily/include/dimension-cache.hh b/lily/include/dimension-cache.hh index 581bcff8a9..6210be1285 100644 --- a/lily/include/dimension-cache.hh +++ b/lily/include/dimension-cache.hh @@ -36,6 +36,7 @@ class Dimension_cache friend class Grob; Dimension_cache (Dimension_cache const &); + Dimension_cache & operator = (Dimension_cache const &d); ~Dimension_cache (); Dimension_cache (); }; |