add get result
This commit is contained in:
@@ -17,5 +17,12 @@ namespace VE
|
||||
std::string m_id;
|
||||
std::string m_event_log_message;
|
||||
std::string m_event_id = hack::security::generate_uuid();
|
||||
|
||||
template<typename T>
|
||||
T get_result()
|
||||
{
|
||||
auto r = std::any_cast<T>(m_result);
|
||||
return r;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user