use forward declaration to treat the dependency of fragments

This commit is contained in:
Takashi Tamura 2017-03-29 19:11:44 +09:00
commit b32854bc59
4 changed files with 35 additions and 16 deletions

View file

@ -0,0 +1,14 @@
%fragment("StdTraitsForwardDeclaration","header")
{
namespace swig {
template <class Type> struct traits_asptr;
template <class Type> struct traits_asval;
struct pointer_category;
template <class Type, class Category> struct traits_as;
template<class Type> struct traits_from;
template <class Type> struct noconst_traits;
template <class Type> swig_type_info* type_info();
template <class Type> const char* type_name();
template <class Type> VALUE from(const Type& val);
}
}