Macro for creating empty Config structures 53/30053/1
authorJan Olszak <j.olszak@samsung.com>
Fri, 31 Oct 2014 15:54:25 +0000 (16:54 +0100)
committerJan Olszak <j.olszak@samsung.com>
Fri, 7 Nov 2014 18:25:24 +0000 (19:25 +0100)
[Bug/Feature]   N/A
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: I1e2c468f2d05855b71938b20e7b63bb5aa112d54

src/config/fields.hpp

index 3269856..d5443b7 100644 (file)
  *       )
  *   };
  */
+
+#define CONFIG_REGISTER_EMPTY                                      \
+    template<typename Visitor>                                     \
+    void accept(Visitor ) {                                        \
+    }                                                              \
+    template<typename Visitor>                                     \
+    void accept(Visitor ) const {                                  \
+    }                                                              \
+
 #define CONFIG_REGISTER(...)                                       \
     template<typename Visitor>                                     \
     void accept(Visitor v) {                                       \