add counter
This commit is contained in:
12
bin/main.cpp
12
bin/main.cpp
@@ -41,6 +41,13 @@ struct ForTypeTrace
|
||||
int a;
|
||||
};
|
||||
|
||||
struct counter_test : public hack::utils::counter<int>
|
||||
{
|
||||
counter_test() : id { ++hack::utils::counter<int>::id } { }
|
||||
int id;
|
||||
|
||||
};
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
{// ex: string::split_str
|
||||
@@ -218,4 +225,9 @@ int main(int argc, char *argv[])
|
||||
hack::log()(hack::security::is_string<decltype ('c')>::value);
|
||||
hack::log()(hack::security::is_string<decltype ("c")>::value);
|
||||
}
|
||||
|
||||
{
|
||||
counter_test a, b, c;
|
||||
hack::log()(c.id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user