mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 15:26:59 +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;
|
||||
}
|
||||
// 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 {
|
||||
return *InputAccessMapping;
|
||||
|
Loading…
x
Reference in New Issue
Block a user