add is_string security
This commit is contained in:
11
bin/main.cpp
11
bin/main.cpp
@@ -17,6 +17,7 @@
|
||||
#include "utils/utils.hpp"
|
||||
#include "security/validate_email.hpp"
|
||||
#include "security/generate_uuid.hpp"
|
||||
#include "security/is_string.hpp"
|
||||
|
||||
// for example
|
||||
int f(int a)
|
||||
@@ -200,4 +201,14 @@ int main(int argc, char *argv[])
|
||||
// ec: security::generate_uuid
|
||||
hack::log()(hack::security::generate_uuid());
|
||||
}
|
||||
|
||||
{
|
||||
// ec: security::is_string
|
||||
std::string s {"test"};
|
||||
hack::log()(hack::security::is_string<decltype ("test_string")>::value);
|
||||
hack::log()(hack::security::is_string<decltype (s)>::value);
|
||||
hack::log()(hack::security::is_string<decltype (123)>::value);
|
||||
hack::log()(hack::security::is_string<decltype ('c')>::value);
|
||||
hack::log()(hack::security::is_string<decltype ("c")>::value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user