mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-24 17:47:15 +02:00
Adds test for each case adapter macros we support to adapt an empty type.
This commit is contained in:
@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user