error C2995: function template has already been defined

The problem is circular dependency. set.h includes set.cpp and set.cpp includes set.h.Remember that including a file simply pastes its code. There is no need for set.cpp to know about set.h as they will be one file when compiling.Also, you shouldn’t call set.cpp a cpp file. cpp files are ones that are meant to generate object … Read more

How can I add reflection to a C++ application?

I’d like to be able to introspect a C++ class for its name, contents (i.e. members and their types) etc. I’m talking native C++ here, not managed C++, which has reflection. I realise C++ supplies some limited information using RTTI. Which additional libraries (or other techniques) could supply this information?