diff options
author | Kim Hagen <kim.sidney@gmail.com> | 2017-11-01 14:40:31 +0100 |
---|---|---|
committer | Kim Hagen <kim.sidney@gmail.com> | 2017-11-01 14:40:31 +0100 |
commit | 2c751589cc234475bcb05e8e16a7e61021c8f100 (patch) | |
tree | 15cdd83cecaa48aea6214ba2d610891844154434 /src/cstore/cstore.hpp | |
parent | cba9f6d4606d10e1069e61703193a402e2a746b9 (diff) | |
download | vyatta-cfg-2c751589cc234475bcb05e8e16a7e61021c8f100.tar.gz vyatta-cfg-2c751589cc234475bcb05e8e16a7e61021c8f100.zip |
use unique_ptr if gcc is version 6 or higher
Diffstat (limited to 'src/cstore/cstore.hpp')
-rw-r--r-- | src/cstore/cstore.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cstore/cstore.hpp b/src/cstore/cstore.hpp index 3777152..60b5b65 100644 --- a/src/cstore/cstore.hpp +++ b/src/cstore/cstore.hpp @@ -340,7 +340,11 @@ private: virtual void pop_cfg_path(string& last) = 0; virtual void append_cfg_path(const Cpath& path_comps) = 0; virtual void reset_paths(bool to_root = false) = 0; + #if __GNUC__ < 6 + virtual auto_ptr<SavePaths> create_save_paths() = 0; + #else virtual unique_ptr<SavePaths> create_save_paths() = 0; + #endif virtual bool cfg_path_at_root() = 0; virtual bool tmpl_path_at_root() = 0; // end path modifiers |