Fixing default VS2013 "default"s

Fixing VS2013 versions of "default" move constructor and assignment
operator
This commit is contained in:
tomy2105 2016-03-15 14:21:50 +01:00
parent f73c4aa486
commit 7360d68eb7

24
tz.h
View File

@ -208,7 +208,7 @@ public:
Zone(Zone&& src)
:
name_(std::move(src.name_)),
zonelets_(std::move(zonelets_))
zonelets_(std::move(src.zonelets_))
{}
Zone& operator=(Zone&& src)
@ -582,26 +582,28 @@ struct TZ_DB
#else // defined(_MSC_VER) || (_MSC_VER >= 1900)
TZ_DB(TZ_DB&& src)
:
version(std::move(src.version)),
zones(std::move(src.zones)),
links(std::move(links)),
leaps(std::move(leaps)),
rules(std::move(rules))
links(std::move(src.links)),
leaps(std::move(src.leaps)),
rules(std::move(src.rules))
#if TIMEZONE_MAPPING
,
mappings(std::move(mappings)),
native_zones(std::move(native_zones))
mappings(std::move(src.mappings)),
native_zones(std::move(src.native_zones))
#endif
{}
TZ_DB& operator=(TZ_DB&& src)
{
version = std::move(src.version);
zones = std::move(src.zones);
links = std::move(links);
leaps = std::move(leaps);
rules = std::move(rules);
links = std::move(src.links);
leaps = std::move(src.leaps);
rules = std::move(src.rules);
#if TIMEZONE_MAPPING
mappings = std::move(mappings);
native_zones = std::move(native_zones);
mappings = std::move(src.mappings);
native_zones = std::move(src.native_zones);
#endif
return *this;
}