Would it make sense to stick a single #ifdef at the top, like this? #ifdef SWIG #define MYPY P<Y> #else #define MYPY Y* #endif class X { MYPY y1; .... } -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 80,000 Newsgroups - 16 Different Servers! =-----