#pragma once
-uint64_t ConvToUInt64(const std::string& in);
+#include "convto.h"
/**
* Represents a member of a channel.
*/
static Id IdFromString(const std::string& str)
{
- return ConvToUInt64(str);
+ return ConvToNum<Id>(str);
}
/** Constructor, sets the user and chan fields to the parameters, does NOT update any bookkeeping