www.digitalmars.com         C & C++   DMDScript  

c++.beta - dmc 8.50.4n Error: cannot find constructor for class matching A::A()

This compiles w/ g++ 3.4.2.

I am trying to compile a lot of test cases w/ STLport.  How can I verify that
mine is the most up todate?

G:\dm\anuj>dmc -v1 port.cpp -Ig:\dm\stlport\stlport
g:\dm\stlport\stlport\stl/_vector.h(192) : Error: cannot find constructor for
class matching A::A()
g:\dm\stlport\stlport\stl/_vector.h(331) : Error: cannot find constructor for
class matching A::A()
g:\dm\stlport\stlport\stl/_vector.h(344) : Error: cannot find constructor for
class matching A::A()
g:\dm\stlport\stlport\stl/_vector.h(473) : Error: cannot find constructor for
class matching A::A()
g:\dm\stlport\stlport\stl/pointers/_vector.h(74) : Error: cannot find
constructor for class matching A::A()
Fatal error: too many errors
--- errorlevel 1

G:\dm\anuj>cat port.cpp
#include <vector>
using namespace std;

class A
{
public:
A(int j): i(j) {}
private:
int i;
};


int main()
{
vector<A> v;
return 0;
}
Dec 30 2007