1 %module template_int_const
3 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) interface_traits; /* Ruby, wrong class name */
4 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) module_traits; /* Ruby, wrong class name */
7 enum Polarization { UnaryPolarization, BinaryPolarization };
8 struct interface_traits
10 static const Polarization polarization = UnaryPolarization;
12 template <Polarization P>
17 typedef unsigned int Category;
20 static const Category category = 1;
29 %template(Interface_UP) Interface_<UnaryPolarization>;
30 %template(Module_1) Module<1>;
33 struct ExtInterface1 :
34 Interface_<UnaryPolarization> // works
37 struct ExtInterface2 :
38 Interface_<interface_traits::polarization> // doesn't work
46 Module<module_traits::category> // doesn't work