fork download
  1. #include <boost/fusion/include/define_struct.hpp>
  2. #include <boost/utility/identity_type.hpp>
  3.  
  4.  
  5. template<int a, int b>
  6. struct AB {};
  7.  
  8. struct Silly{
  9. AB<2,3> ab;
  10. };
  11.  
  12. BOOST_FUSION_ADAPT_STRUCT(
  13. Silly,
  14. (BOOST_IDENTITY_TYPE((AB<2,3>)), ab))
  15.  
  16. ::Silly s;
  17.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty