main.cpp:43: error: no matching function for call to 'Shablon<T1, false>::doSomething(bool)'
main.cpp:29: note: candidates are: void Shablon<T, alt>::doSomething(Int2Type<1>) [with T = T1, bool alt = false]
main.cpp:34: note: void Shablon<T, alt>::doSomething(Int2Type<0>) [with T = T1, bool alt = false]
doSomething(Int2Type<alt>());
std::string unixtimeToString( time_t ts )
{
const size_t numCStringSize = 0x80;
const char strTimestampFmt[] = "%a, %Y-%b-%d, %H:%M:%S";
char timeCStr[ numCStringSize ];
std::tm tmInfo;
if (gmtime_s( &tmInfo, &ts ) != 0)
return "invalid time";
std::strftime( timeCStr, numCStringSize, strTimestampFmt, &tmInfo );
return timeCStr;
}
dst_type dst(src.begin(), src.end());