Paste #265596

   
pasted on 04.10.2022 13:12
  • Edit to this paste
  • Print
  • Raw
  • The following pastes replied to this paste:  # 265597 # 272857
  • Show paste tree
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "utility/basic_app.hpp"

class test: public utility::basic_app<test>
{
	using app = utility::basic_app<test>;

public:
	test()
		: app(2048)
	{
	}

	int main_loop()
	{
		for (std::size_t i = 0; i < 1000000; ++i)
		{
			app::info("test") << "App - " << i;
		}
		return 0;
	}
};

int main(int argc, char* argv[])
{
	test app_;

	return app_.main(argc, argv);
}
Add Comment
Author