refactor: avoid namespace pollution in util/date.hpp

This commit is contained in:
peelz
2025-06-22 00:50:25 -04:00
parent a40c53bd5d
commit e4dd2ecc5a
4 changed files with 30 additions and 29 deletions

View File

@ -15,7 +15,7 @@
namespace date {
#if HAVE_CHRONO_TIMEZONES
using namespace std::chrono;
using namespace std;
using std::format;
#else
using system_clock = std::chrono::system_clock;
@ -73,5 +73,3 @@ struct fmt::formatter<date::zoned_time<Duration, TimeZonePtr>> {
}
};
#endif
using namespace date;