fix compilation warnings for vc++

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-10-22 21:33:01 +00:00
commit f38b4df07d
3 changed files with 8 additions and 8 deletions

View file

@ -27,7 +27,7 @@ namespace Space {
void templateXYZ(XYZ<T> i) {}
operator T() { return m_t; }
operator NotXYZ<T>() const { return m_notxyz; }
operator XYZ<T>() const { XYZ<T> xyz; return xyz; }
operator XYZ<T>() const { XYZ<T> xyz = XYZ<T>(); return xyz; }
};
}