reserve capacity to fast_oss

This commit is contained in:
gabime
2014-03-16 20:48:37 +02:00
parent 08ba1791ba
commit 0209765b8f
2 changed files with 10 additions and 1 deletions

View File

@@ -18,7 +18,10 @@ using namespace utils;
int main(int argc, char* argv[])
{
if(argc || argv) {};
if(argc || argv) {};
std::string s;
cout << "STRING cap: " << format(s.capacity()) << endl;
auto fsink = std::make_shared<sinks::rotating_file_sink>("log", "txt", 1024*1024*50 , 5, 0);
//auto fsink = std::make_shared<sinks::simple_file_sink>("simplelog", "txt");