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