fixes
This commit is contained in:
		@@ -37,7 +37,7 @@ int main(int argc, char* argv[])
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    auto start = system_clock::now();
 | 
					    auto start = system_clock::now();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const unsigned int howmany = 500000;
 | 
					    const unsigned int howmany = 3000000;
 | 
				
			||||||
    for(unsigned int i = 0; i < howmany ; i++)
 | 
					    for(unsigned int i = 0; i < howmany ; i++)
 | 
				
			||||||
        my_logger.info() << "Hello logger " << i;
 | 
					        my_logger.info() << "Hello logger " << i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -36,11 +36,11 @@ protected:
 | 
				
			|||||||
    virtual int sync() override
 | 
					    virtual int sync() override
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return 0;
 | 
					        return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    virtual std::streamsize xsputn(const char_type* s, std::streamsize count) override
 | 
					    virtual std::streamsize xsputn(const char_type* s, std::streamsize count) override
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					 | 
				
			||||||
		auto ssize = _str.size();
 | 
							auto ssize = _str.size();
 | 
				
			||||||
		auto cap_left = _str.capacity() - ssize;
 | 
							auto cap_left = _str.capacity() - ssize;
 | 
				
			||||||
		if(cap_left < static_cast<std::size_t>(count))
 | 
							if(cap_left < static_cast<std::size_t>(count))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -47,7 +47,7 @@ inline bool operator!=(const std::tm& tm1, const std::tm& tm2)
 | 
				
			|||||||
    return !(tm1==tm2);
 | 
					    return !(tm1==tm2);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
inline const char* eol()
 | 
					constexpr inline const char* eol()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
#ifdef _WIN32
 | 
					#ifdef _WIN32
 | 
				
			||||||
	return "\r\n";
 | 
						return "\r\n";
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user