struct IParameterAccessor
{
...
};
template <size_t i>
class test
{
public:
typedef std::pair < std::string, IParameterAccessor* > TParamPair;
void func(const char* s, IParameterAccessor* a)
{
// *** compile error thrown in this line:
TParamPair p(std::string(s), a);
/* BUT: The following commented line works: */
// std::pair<std::string, IParameterAccessor*> p(std::string(s), a);
/* AND: The next commented lines works as well: */
// TParamPair p;
// p.first = std::string(s);
// p.second = p;
}
};
strange c++ compile error on gcc
Hi!
I have been a VC++ developer for quite some time, and recently tried compiling some stuff on Linux.
now i've stumbled across a strange compile error (using GCC 3.3.5):
why is that so? whats wrong?
help please!
greets
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement