Several minor fixes to Model

This commit is contained in:
Alessandro Ranellucci 2014-05-08 13:33:43 +02:00
parent 6e207d3830
commit f76e2c2222
6 changed files with 76 additions and 10 deletions

View file

@ -250,6 +250,18 @@ ConfigBase::set_deserialize(const t_config_option_key opt_key, SV* str) {
}
#endif
DynamicConfig& DynamicConfig::operator= (DynamicConfig other)
{
this->swap(other);
return *this;
}
void
DynamicConfig::swap(DynamicConfig &other)
{
std::swap(this->options, other.options);
}
DynamicConfig::~DynamicConfig () {
for (t_options_map::iterator it = this->options.begin(); it != this->options.end(); ++it) {
ConfigOption* opt = it->second;