blob: 1698c3e03d83ff0dae83d871afa28885bec48fa8 [file] [log] [blame]
%module valuewrapper_base
%inline
%{
namespace oss
{
enum Polarization { UnaryPolarization, BinaryPolarization };
struct Base
{
};
template <Polarization P>
struct Interface : Base
{
Interface(const Base& b) { };
};
template <class Result>
Result make() { return Result(*new Base()); }
}
%}
namespace oss
{
// Interface
%template(Interface_BP) Interface<BinaryPolarization>;
%template(make_Interface_BP) make<Interface<BinaryPolarization> >;
}