About antlrcpp::Any derived.
还没有人认领这个 Issue。
评估
调研方向
从 antlrcpp::Any 的实现及其 is() 入口开始,然后复现所提供的 A/B 指针示例。完成的标准是确定检查基类指针时的预期行为,并覆盖这一继承情况。
由索引模型根据 Issue 内容生成。
描述
Hi,
There are the following codes:
class A {};
class B : public A {};
B *b = new B;
antlrcpp::Any any = b;
bool is = any.is<A*>();
Variable ìs' always `false'. How do I solve this type of derivation problem?
- 主要语言
- C++
- 星标
- 80
- 派生
- 33
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
antlr/antlr4-cpp 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 30/100
antlr/antlr4-cpp#14 ·
-
难度 5/5 一周以上 新手友好度 20/100
antlr/antlr4-cpp#13 ·
-
难度 4/5 3-5 天 新手友好度 35/100
antlr/antlr4-cpp#11 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
antlr/antlr4-cpp#10 ·
相似的 Issue
-
难度 2/5 半天 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
ROCm/rocm-libraries#12703 ·
维护者通常 2 天内回复
-
bug
难度 1/5 1-3 小时 新手友好度 88/100
维护者通常 2 天内回复
-
Feature request
难度 2/5 1-3 小时 新手友好度 76/100
qbittorrent/qBittorrent#24975 ·
维护者通常 3 天内回复