[build] switch to c++11
Conflicts: Makefile.in chunker/cache_stream.cc chunker/cache_stream.h thin-provisioning/thin_archive.cc thin-provisioning/thin_show_duplicates.cc unit-tests/Makefile.in
This commit is contained in:
@@ -32,7 +32,7 @@ namespace {
|
||||
return info.st_size;
|
||||
}
|
||||
|
||||
auto_ptr<progress_monitor> create_monitor(bool quiet) {
|
||||
unique_ptr<progress_monitor> create_monitor(bool quiet) {
|
||||
if (!quiet && isatty(fileno(stdout)))
|
||||
return create_progress_bar("Restoring");
|
||||
else
|
||||
@@ -70,7 +70,7 @@ namespace {
|
||||
check_file_exists(*fs.input);
|
||||
ifstream in(fs.input->c_str(), ifstream::in);
|
||||
|
||||
auto_ptr<progress_monitor> monitor = create_monitor(fs.quiet);
|
||||
unique_ptr<progress_monitor> monitor = create_monitor(fs.quiet);
|
||||
parse_xml(in, restorer, get_file_length(*fs.input), *monitor);
|
||||
|
||||
} catch (std::exception &e) {
|
||||
|
Reference in New Issue
Block a user