From 1d18d95d4f1457e2f37f0237db79873a346873df Mon Sep 17 00:00:00 2001 From: paboyle Date: Sun, 18 Jun 2017 00:13:03 +0100 Subject: [PATCH] Class name return --- lib/serialisation/MacroMagic.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/serialisation/MacroMagic.h b/lib/serialisation/MacroMagic.h index 04f1b401..774c947f 100644 --- a/lib/serialisation/MacroMagic.h +++ b/lib/serialisation/MacroMagic.h @@ -115,6 +115,7 @@ THE SOFTWARE. #define GRID_MACRO_WRITE_MEMBER(A,B) Grid::write(WR,#B,obj. B); #define GRID_SERIALIZABLE_CLASS_MEMBERS(cname,...)\ + std::string SerialisableClassName(void) {return std::string(#cname);} \ GRID_MACRO_EVAL(GRID_MACRO_MAP(GRID_MACRO_MEMBER,__VA_ARGS__))\ template \ static inline void write(Writer &WR,const std::string &s, const cname &obj){ \