17 m_sessions[_session] = _p;
20 bool SessionManager::hasPrivilegeLevel(std::string
const& _session,
Privilege _l)
const 22 auto it = m_sessions.find(_session);
23 return it != m_sessions.end() && it->second.
privileges.count(_l);
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
vector_ref< _T const > ref(_T const &_t)
std::hash for asio::adress
std::unordered_set< Privilege > privileges
std::string toBase64(bytesConstRef _in)