从外部库接收参数:
candidate function not viable: no known conversion from 'std::unordered_map<string, string>' to 'std::unordered_map<string, string> &&' (aka 'unordered_map<basic_string<char>, basic_string<char> > &&') for 1st argument
void someMethod(shared_ptr<Context> ctx, std::unordered_map<string, string>&& config) {
ctx->setConfigOverrides(config);
}
// From Context :
// I can't change following method :
void setConfigOverrides(
std::unordered_map<string, string>&& configOverrides) {
setConfigOverrides(make_shared<const MemConfig>(move(configOverrides)));
}