mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-25 13:30:43 +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:
1 file changed
+5
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user