Adds test for each case adapter macros we support to adapt an empty type.

This commit is contained in:
Damien Buhl (alias daminetreg) committed 2015-05-15 09:09:10 +02:00
1 parent 8b1da45bfe
commit 9911e05838
12 files changed
+79 -1

No files matched your search

+13
View File
@@ -69,6 +69,19 @@ namespace ns
#endif
template <typename TypeToConstruct>
struct empty_struct_templated_factory {
TypeToConstruct operator()() {
return TypeToConstruct();
}
};
BOOST_FUSION_ADAPT_TPL_STRUCT(
(TypeToConstruct),
(empty_struct_templated_factory)(TypeToConstruct),
)
int
main()