Big cleanup of rampant using std.
This commit is contained in:
parent
fcd1225370
commit
453c50c563
15 changed files with 49 additions and 40 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue