From: Joel Rosdahl Date: Sun, 26 Oct 2025 21:05:41 +0000 (+0100) Subject: refactor: Use std::chrono_literals X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d23e73b38da716fc12d2c42fa07fa4525ce92798;p=thirdparty%2Fccache.git refactor: Use std::chrono_literals --- diff --git a/src/ccache/ccache.cpp b/src/ccache/ccache.cpp index bc5b0b6d..c8cc6775 100644 --- a/src/ccache/ccache.cpp +++ b/src/ccache/ccache.cpp @@ -94,7 +94,7 @@ namespace fs = util::filesystem; -using namespace std::literals::chrono_literals; +using namespace std::chrono_literals; using core::Statistic; using util::DirEntry; diff --git a/src/ccache/inodecache.cpp b/src/ccache/inodecache.cpp index 82452c7d..ed9c7f98 100644 --- a/src/ccache/inodecache.cpp +++ b/src/ccache/inodecache.cpp @@ -54,7 +54,7 @@ namespace fs = util::filesystem; -using namespace std::literals::chrono_literals; +using namespace std::chrono_literals; // The inode cache resides on a file that is mapped into shared memory by // running processes. It is implemented as a two level structure, where the top diff --git a/src/ccache/storage/local/localstorage.cpp b/src/ccache/storage/local/localstorage.cpp index ce2aaeb4..c25899f9 100644 --- a/src/ccache/storage/local/localstorage.cpp +++ b/src/ccache/storage/local/localstorage.cpp @@ -85,7 +85,7 @@ namespace fs = util::filesystem; -using namespace std::literals::chrono_literals; +using namespace std::chrono_literals; using core::AtomicFile; using core::Statistic; diff --git a/src/ccache/util/lockfile.cpp b/src/ccache/util/lockfile.cpp index 3c91309f..143641f8 100644 --- a/src/ccache/util/lockfile.cpp +++ b/src/ccache/util/lockfile.cpp @@ -41,7 +41,7 @@ #include #include -using namespace std::literals::chrono_literals; +using namespace std::chrono_literals; namespace fs = util::filesystem; diff --git a/unittest/test_inodecache.cpp b/unittest/test_inodecache.cpp index 7e60ca92..ce285d4f 100644 --- a/unittest/test_inodecache.cpp +++ b/unittest/test_inodecache.cpp @@ -38,7 +38,7 @@ namespace fs = util::filesystem; -using namespace std::literals::chrono_literals; +using namespace std::chrono_literals; using TestUtil::TestContext; diff --git a/unittest/test_util_string.cpp b/unittest/test_util_string.cpp index 53df10a9..4b90db0d 100644 --- a/unittest/test_util_string.cpp +++ b/unittest/test_util_string.cpp @@ -25,7 +25,7 @@ #include // https://github.com/doctest/doctest/issues/618 #include -using namespace std::literals::chrono_literals; +using namespace std::chrono_literals; TEST_SUITE_BEGIN("util");