//cannot declare operator<<(...) here: //forward declarations: class External; template<class T, class Y>
My Problem: Got two classes, class A and B, so i got A.h and A.cpp and B.h and B.cpp. A needs to know B and B needs to know A. I solved it the following way (i don\'t know why it has to be so...)
If i want a circular reference but in two different files in C++, how would I implement that? For examp开发者_如何学Cle
I always known that in C++ you can only use forward declared classes with reference or pointer. Why if I use the forward declared class below as the template argument of std::vector I don\'t have any
I am building a large hierarchical iPhone application with multiple screens controlled by a UINavigationController. One of these screens is able to display content in two different formats (I toggle b
In C++, I\'m trying to create a specialized point class as a union, like so: union point { struct { float x, y, z; };
This question already has answers here: Closed 11 years ago. Possible Duplicate: @class vs. #import In Objective-C, what are the best practices for using forward declarations (of classes
I run into what seems to be a very classical problem: An item and a collection class, both referencing each other, that require a fo开发者_JAVA技巧rward declaration. I\'m using Delphi 2010 with update
I\'m in a real fix... I need to port code, which has a lot of interdependent classes and uses namespaces in order to avoid includes. This works in MSVC, but I can\'t find a way to deal with this situa
I\'d like to use boost ptree in my project but since ptree.hpp causes about another 1000 header files to be included this increases compile times drastically (e.g. from 1s to 7s) and as it\'s needed i