Big cleanup of rampant using std.

This commit is contained in:
Zed A. Shaw 2024-09-07 22:26:57 -04:00
parent fcd1225370
commit 453c50c563
15 changed files with 49 additions and 40 deletions

View file

@ -5,7 +5,7 @@
using json = nlohmann::json;
using namespace fmt;
using namespace std;
using std::string, std::cout;
int main(int argc, char *argv[]) {
if(argc != 2) {
@ -13,10 +13,10 @@ int main(int argc, char *argv[]) {
return 0;
}
ifstream infile(argv[1]);
std::ifstream infile(argv[1]);
json data = json::parse(infile);
json::string_t s2 = data["happy"].template get<std::string>();
json::string_t s2 = data["happy"].template get<string>();
for(auto &el : data.items()) {
cout << el.key() << "=" << el.value() << "\n";