gpt4 book ai didi

c++ - 模板参数 2 无效

转载 作者:行者123 更新时间:2023-11-28 01:35:39 24 4
gpt4 key购买 nike

<分区>

我不断收到以下错误:

utils.h:22:39: error: template argument 4 is invalid
utils.h:21:24: error: template argument 2 is invalid

当我尝试编译时:

class Words { 
map <string, *Words > synonyms;
map <string, map<string, *Words> > translations;
};

我不太明白是什么让它成为一个无效的论点。错误箭头指向“>”符号。该类的目的是使用 AVL TreeMaps 构建字典。

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com