S
Steven T. Hatton
This is not a big deal. It just bothers me that I don't see a way around
including the header for QVariant in the following:
#ifndef _XML_IMPL_INTERNAL_H_
#define _XML_IMPL_INTERNAL_H_
class QString;
class QVariant;
namespace xml_impl {
void unknownType(const QString& functionName, const QVariant::Type& type);
void ni(const QString& functionName);
}
#endif
/*****************************
* compiler error messages
.../../include/xml_impl/xml_impl_internal.h:7: error: expected unqualified-id
before ?&? token
.../../include/xml_impl/xml_impl_internal.h:7: error: expected ?,? or ?...?
before ?&? token
.../../include/xml_impl/xml_impl_internal.h:7: error: ISO C++ forbids
declaration of ?parameter? with no type
*****************************/
Is there any way to get around providing the definition of QVariant::Type
prior to the function declaration?
including the header for QVariant in the following:
#ifndef _XML_IMPL_INTERNAL_H_
#define _XML_IMPL_INTERNAL_H_
class QString;
class QVariant;
namespace xml_impl {
void unknownType(const QString& functionName, const QVariant::Type& type);
void ni(const QString& functionName);
}
#endif
/*****************************
* compiler error messages
.../../include/xml_impl/xml_impl_internal.h:7: error: expected unqualified-id
before ?&? token
.../../include/xml_impl/xml_impl_internal.h:7: error: expected ?,? or ?...?
before ?&? token
.../../include/xml_impl/xml_impl_internal.h:7: error: ISO C++ forbids
declaration of ?parameter? with no type
*****************************/
Is there any way to get around providing the definition of QVariant::Type
prior to the function declaration?