Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error C4146 & C2664 #6

Open
quqe opened this issue Jul 23, 2023 · 1 comment
Open

Error C4146 & C2664 #6

quqe opened this issue Jul 23, 2023 · 1 comment

Comments

@quqe
Copy link

quqe commented Jul 23, 2023

Code:

typedef trie::trie_map<wchar_t, int> TestMap;
TestMap tmap;
tmap.insert(L"Test-string", 105);

VisualStudio 2022 CE

ERROR C2664 "void trie::detail::PrefixHolder<char,ValueT,0>::setkey(std::vector<AtomT,std::allocator> *,trie::detail::trie_offset_t,trie::detail::trie_offset_t)": невозможно преобразовать аргумент 1 из "std::vector<AtomT,std::allocator<wchar_t>> *" в "std::vector<AtomT,std::allocator> *"

trie.h 419

@kephir4eg
Copy link
Owner

Для wchar_t явно нужна специализация.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants