You must be registered to post a reply. Click here to register.
T O P I C R E V I E W
WWB
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 }
1 L A T E S T R E P L I E S (Newest First)
feline
Posted - Jul 05 2008 : 11:33:59 AM Does turning on deeper macro parsing, as explained in this FAQ entry help: