forgot inline
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5807 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a941c34524
commit
424c7a78e3
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue