[Issue 22299] New: RedBlackTree.empty missing "const" annotation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 12 12:32:36 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22299
Issue ID: 22299
Summary: RedBlackTree.empty missing "const" annotation
Product: D
Version: D2
Hardware: All
URL: http://dlang.org/
OS: All
Status: NEW
Severity: major
Priority: P3
Component: phobos
Assignee: nobody at puremagic.com
Reporter: eyal at weka.io
This does not compile:
const(RedBlackTree!int) tree;
assert(tree.empty); // "empty" not valid on a const object
--
More information about the Digitalmars-d-bugs
mailing list