mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 08:15:35 +00:00
Add issue with implicit argument type conversions for Settings.set()
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
This commit is contained in:
parent
3609fd77ec
commit
f567645db6
@ -213,6 +213,11 @@ struct Settings {
|
|||||||
}
|
}
|
||||||
map->at(key) = value;
|
map->at(key) = value;
|
||||||
}
|
}
|
||||||
|
// Additional set overload for const char*, to avoid implicit conversions when set is
|
||||||
|
// invoked with string literals rather than std::strings
|
||||||
|
void set(Key key, const char* value){
|
||||||
|
set(key, std::string(value));
|
||||||
|
}
|
||||||
|
|
||||||
const std::unordered_map<ComposedKey, SettingsAccessControl> getACLMap() const {
|
const std::unordered_map<ComposedKey, SettingsAccessControl> getACLMap() const {
|
||||||
return *InputAccessMapping;
|
return *InputAccessMapping;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user