forgot inline
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5807 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a8ab65b69e
commit
d395a6eaf0
1 changed files with 2 additions and 1 deletions
|
|
@ -403,7 +403,7 @@ static int NAME(TYPE x) {
|
||||||
%enddef
|
%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:
|
swig doesn't know the casting type, but C++ can derived it:
|
||||||
|
|
||||||
struct Foo { enum {Hi, Hello } hola; };
|
struct Foo { enum {Hi, Hello } hola; };
|
||||||
|
|
@ -411,6 +411,7 @@ static int NAME(TYPE x) {
|
||||||
%insert("runtime") %{
|
%insert("runtime") %{
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
template <class T, class V>
|
template <class T, class V>
|
||||||
|
inline
|
||||||
void swig_assign_unnamed(T& eval, const V& val)
|
void swig_assign_unnamed(T& eval, const V& val)
|
||||||
{
|
{
|
||||||
eval = static_cast<T>(val);
|
eval = static_cast<T>(val);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue