Fix to compile with GCC 4.9 (again)

This commit is contained in:
yvt 2017-01-30 01:22:27 +09:00
parent 2e105e7e62
commit 2d2fbc0d9c
2 changed files with 2 additions and 2 deletions

View File

@ -28,4 +28,4 @@ before_script:
script:
- cmake -DOPENSPADES_RESOURCES=off ..
- cat CMakeCache.txt
- make
- make -k

View File

@ -29,7 +29,7 @@ namespace spades{
new(p) PackageUpdateManager::VersionInfo{};
}
static void VersionInfoFactory2(const PackageUpdateManager::VersionInfo& other, PackageUpdateManager::VersionInfo *p) {
new(p) PackageUpdateManager::VersionInfo{other};
new(p) PackageUpdateManager::VersionInfo(other);
}
static void VersionInfoDestructor(PackageUpdateManager::VersionInfo *p) {
p->~VersionInfo();