implement generic log entry with arbitrary fields
This commit is contained in:
parent
894ef68a8f
commit
4522e209fb
1 changed files with 7 additions and 3 deletions
|
|
@ -468,7 +468,7 @@ namespace test{
|
|||
{
|
||||
ArgSeq argSeq;
|
||||
argSeq.reserve(sizeof...(ARGS));
|
||||
stringify(argSeq, args...);
|
||||
stringify (argSeq, args...);
|
||||
return call (target, function, std::move(argSeq));
|
||||
}
|
||||
|
||||
|
|
@ -489,9 +489,13 @@ namespace test{
|
|||
|
||||
template<typename...ELMS>
|
||||
EventLog&
|
||||
note (ELMS&& ...initialiser)
|
||||
note (ELMS const& ...initialiser)
|
||||
{
|
||||
UNIMPLEMENTED ("Log generic entry with arbritrary attributes and values");
|
||||
ArgSeq args;
|
||||
args.reserve(sizeof...(ELMS));
|
||||
stringify (args, initialiser...);
|
||||
log_->emplace_back(args);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue