counter is an int
void SentryManager::add(std::string name,std::shared_ptr){
name = name + std::to_string(counter
You have tripped over C++ DR 1261, which reads in part
The code "
int i; to_string(i);" fails to compile, as 'int' is ambiguous between 'long long' and 'long long unsigned'. It seems unreasonable to expect users to cast numbers up to a larger type just to useto_string.
The proposed resolution is to add more overloads. GCC has implemented this already; I guess MSVC hasn't.