From 4522e209fb3ac060d294482add52eb157660b0d8 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Sat, 12 Dec 2015 01:24:52 +0100 Subject: [PATCH] implement generic log entry with arbitrary fields --- src/lib/test/event-log.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lib/test/event-log.hpp b/src/lib/test/event-log.hpp index 9f61ebe51..2e2f05116 100644 --- a/src/lib/test/event-log.hpp +++ b/src/lib/test/event-log.hpp @@ -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 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; }