It worked like this: std::unordered_map<std::string, std::string> x = {..}; , now I std::unordered_map<const char*, const char*, decltype(hash_func), decltype(comp_func)> x(0, hash_func, comp_func) = {..} trying to remake to std::unordered_map<const char*, const char*, decltype(hash_func), decltype(comp_func)> x(0, hash_func, comp_func) = {..} further syntax error. Or maybe it will turn out functions to thrust directly into <> template?
auto hash_func = [](const char* x) { return (size_t)*x; }; auto comp_func = [](const char* x, const char* y) { return !strcmp(x, y); };
syntax error: missing ';' before '=' syntax error: missing ';' before '{' syntax error: '='syntax error: missing ';' before '=' syntax error: missing ';' before '{' syntax error: '='syntax error: missing ';' before '=' syntax error: missing ';' before '{' syntax error: '='from which nothing is unclear what is wrong =) - J. Doe