summaryrefslogtreecommitdiff
path: root/src/cstore/unionfs/cstore-unionfs.cpp
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2017-11-01 14:40:31 +0100
committerKim Hagen <kim.sidney@gmail.com>2017-11-01 14:40:31 +0100
commit2c751589cc234475bcb05e8e16a7e61021c8f100 (patch)
tree15cdd83cecaa48aea6214ba2d610891844154434 /src/cstore/unionfs/cstore-unionfs.cpp
parentcba9f6d4606d10e1069e61703193a402e2a746b9 (diff)
downloadvyatta-cfg-2c751589cc234475bcb05e8e16a7e61021c8f100.tar.gz
vyatta-cfg-2c751589cc234475bcb05e8e16a7e61021c8f100.zip
use unique_ptr if gcc is version 6 or higher
Diffstat (limited to 'src/cstore/unionfs/cstore-unionfs.cpp')
-rw-r--r--src/cstore/unionfs/cstore-unionfs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cstore/unionfs/cstore-unionfs.cpp b/src/cstore/unionfs/cstore-unionfs.cpp
index d061967..8f440ea 100644
--- a/src/cstore/unionfs/cstore-unionfs.cpp
+++ b/src/cstore/unionfs/cstore-unionfs.cpp
@@ -560,7 +560,11 @@ UnionfsCstore::clearCommittedMarkers()
bool
UnionfsCstore::construct_commit_active(commit::PrioNode& node)
{
+ #if __GNUC__ < 6
+ auto_ptr<SavePaths> save(create_save_paths());
+ #else
unique_ptr<SavePaths> save(create_save_paths());
+ #endif
reset_paths();
append_cfg_path(node.getCommitPath());