On 17.04.2016 13:00, denizzzka wrote:
So, my problem is solved. But nevertheless maybe here is a problem in
the compiler too.
I've reduced the test case and filed an issue:
https://issues.dlang.org/show_bug.cgi?id=15936
As Alex Parrill says, on problem was in const member. But this is
one of the problems, and after fix here still was an error.
But alphaglosined found another problem! For some unknown reason
here it is need to specify an empty postblit constructor.
Full patch:
On Sunday, 17 April 2016 at 06:42:39 UTC, denizzzka wrote:
Tried to build small test app - is not reproduced.
Also tried to reduce source:
https://github.com/denizzzka/r-tree/tree/314f7f1cc1b6387915dc56dcb2d3ccbc63e19275/source
In this source line 199 causes this error
Tried to build small test app - is not reproduced.
On Saturday, 16 April 2016 at 15:15:18 UTC, Alex Parrill wrote:
Try removing the const from this line:
debug private const bool isLeafNode = false;
I suspect that D is disabling whole-structure assignment since
allowing it would mean that the constant `isLeafNode` could be
changed.
Tried
On Saturday, 16 April 2016 at 11:48:56 UTC, denizzzka wrote:
Hi!
DMD and LDC2 complain about disabled opAssign, but I am not
used @disable and depend package "gfm" also isn't uses @disable.
...
Try removing the const from this line:
debug private const bool isLeafNode = false;
I suspect
On Saturday, 16 April 2016 at 11:48:56 UTC, denizzzka wrote:
source/package.d(109,31): Error: function
rtree.RAMNode!(Box!(int, 2), ubyte).RAMNode.opAssign is not
callable because it is annotated with @disable
source/package.d(110,26): Error: function
rtree.RAMNode!(Box!(int, 2),
Hi!
DMD and LDC2 complain about disabled opAssign, but I am not used
@disable and depend package "gfm" also isn't uses @disable.
Steps to reproduce:
git clone https://github.com/denizzzka/r-tree.git
cd r-tree
git checkout 803eed22
dub test
Fetching gfm 6.0.0 (getting selected version)...