Hello Boost Users,
I've encountered a trouble using fusion adapted struct as mpl sequence:
when I call mpl::push_front with fusion::vector it works but if I try to
call it with
adapted struct, it fails. Do I miss something? Is there any concise solution
or
I have to convert it by hand?
source:
http://pastebin.com/3ELipu1M
1. #include <string>
2.
3. #include
4. #include
5. #include
6. #include
7.
8. typedef boost::fusion::vector employee_1;
9.
10. struct employee_2
11. {
12. std::string name;
13. int age;
14. };
15.
16. BOOST_FUSION_ADAPT_STRUCT(
17. employee_2,
18. (std::string, name)
19. (int, age))
20.
21. /* this line compiles just fine */
22. typedef boost::mpl::push_front::typebool_employee_1
;
23.
24. /* this fails */
25. typedef boost::mpl::push_front::typebool_employee_2
;
26.
27. int main() {
28. return 0;
29. }
Thanks!