有这样的代码:
template <class T>
class SomeClass{
typedef boost::shared_ptr<T> sPtr;
typedef std::vector<sPtr> c;
typedef c::iterator cIt; // here is the problem
};
错误是:
main.cpp:23: error: type ‘std::vector<boost::shared_ptr<X>, std::allocator<boost::shared_ptr&
我正在尝试获取此xml的有效xsd模式。某些元素属于默认名称空间,而其他元素属于b名称空间。它还远未完成,但我仍然停留在room定义上。它显示以下错误:
Warning 1 The element 'rooms' in namespace 'building' has invalid child element 'room'. List of possible elements expected: 'room' in namespace 'building'.
如何在正确的命名空间中定义房间类型?
xml:
&