Workaround for upstream module bug causing command line option parsing for multi-boolean options like retract-layer-change and wipe

This commit is contained in:
Alessandro Ranellucci 2014-04-19 19:14:41 +02:00
parent 5d10ef514f
commit 7041ebdd22
5 changed files with 26 additions and 8 deletions

View file

@ -237,6 +237,17 @@ ConfigBase::set(t_config_option_key opt_key, SV* value) {
}
return true;
}
/* This method is implemented as a workaround for this typemap bug:
https://rt.cpan.org/Public/Bug/Display.html?id=94110 */
bool
ConfigBase::set_deserialize(const t_config_option_key opt_key, SV* str) {
size_t len;
const char * c = SvPV(str, len);
std::string value(c, len);
return this->set_deserialize(opt_key, value);
}
#endif
DynamicConfig::~DynamicConfig () {