WWB
Starting Member
China
1 Posts |
Posted - Jul 05 2008 : 03:14:58 AM
|
C++ code: 1: //header.hpp #include <exception> using namespace std; namespace HDD { #define EXCLASS(classname) class classname:public exception EXCLASS(findstring) {public: enum{NotFound=0,InternalError=1} errortype;} #undef EXCLASS }
//main.cpp #include "header.hpp" int main() { HDD::findstring a;/*here! "findstring"! UnderLine! Refactoring not available on symbol!*/ //it was compiled by intel C++ compiler and vc2008 }
|
|