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

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

View File

@ -79,6 +79,20 @@ namespace ns
)
#endif
template <typename TypeToConstruct>
class empty_adt_templated_factory {
TypeToConstruct operator()() {
return TypeToConstruct();
}
};
BOOST_FUSION_ADAPT_TPL_ADT(
(TypeToConstruct),
(empty_adt_templated_factory)(TypeToConstruct),
)
int
main()
{