fix. 漏了typename

This commit is contained in:
lhhxxxxx
2022-08-05 19:04:36 +08:00
parent 106c593fd3
commit 6c7e3ca860

View File

@@ -47,8 +47,8 @@ namespace asst::utils
template<typename map_t>
inline std::string string_replace_all_batch(const std::string& src, const map_t& replace_pairs)
requires std::derived_from<map_t::value_type::first_type, std::string>
&& std::derived_from<map_t::value_type::second_type, std::string>
requires std::derived_from<typename map_t::value_type::first_type, std::string>
&& std::derived_from<typename map_t::value_type::second_type, std::string>
{
std::string str = src;
for (const auto& [old_value, new_value] : replace_pairs) {