forgot inline

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5807 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-03-31 02:29:27 +00:00
commit 424c7a78e3

View file

@ -403,7 +403,7 @@ static int NAME(TYPE x) {
%enddef
/* Auxiliar methods for assigning unnamed type C++ variables, where
/* Auxiliary methods for assigning unnamed type C++ variables, where
swig doesn't know the casting type, but C++ can derived it:
struct Foo { enum {Hi, Hello } hola; };
@ -411,6 +411,7 @@ static int NAME(TYPE x) {
%insert("runtime") %{
#ifdef __cplusplus
template <class T, class V>
inline
void swig_assign_unnamed(T& eval, const V& val)
{
eval = static_cast<T>(val);