remove query function and json dependencyce
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include "hack/logger/logger.hpp"
|
||||
#include "hack/utils/utils.hpp"
|
||||
#include "hack/utils/singleton.hpp"
|
||||
#include "hack/utils/func_query.hpp"
|
||||
|
||||
int f(int a)
|
||||
{
|
||||
@@ -76,25 +75,6 @@ auto main(int argc, char *argv[]) -> int
|
||||
}
|
||||
}
|
||||
|
||||
{// ex: query function
|
||||
auto query = hack::utils::make_query("super_function", "1", "two");
|
||||
hack::log()("query", query);
|
||||
|
||||
query = hack::utils::make_query("super_function", 1, 'c');
|
||||
hack::log()("query", query);
|
||||
|
||||
std::string jstr { "{\"test\",\"data\"}" };
|
||||
query = hack::utils::make_query("super_function", 1, 123.3f, jstr);
|
||||
hack::log()("JSON sting", query);
|
||||
|
||||
nlohmann::json js { "test", "data" };
|
||||
query = hack::utils::make_query("super_function", 1'000'000, 123.3f, js);
|
||||
hack::log()("JSON", query);
|
||||
|
||||
query = hack::utils::make_query("super_function");
|
||||
hack::log()("query", query);
|
||||
}
|
||||
|
||||
{// ex: singleton
|
||||
test_singleton::instance().print();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user