I know that this #define QUOTE(X) #X
turns X into a c-string version of whatever is passed to it. my question is if there is a way to do this in reverse ie: #define DEQUOTEANDCALLFUNCTIONORCLASSWITHGIVENNAME(X) (X#)()
is this possible?
Labdabeta
182
Posting Pro in Training
Featured Poster
Recommended Answers
Jump to PostThis is a question that comes up from time to time on forums on C++. And, I'm convinced now that there is no way to do this. I hope I'm wrong, but I think there is little chance.
All 3 Replies
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Labdabeta
182
Posting Pro in Training
Featured Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.