Boost logo

Boost Users :

Subject: Re: [Boost-users] How can I use random library in a class? Can any one with kindness help me?
From: Pete Bartlett (pete_at_[hidden])
Date: 2010-05-13 06:12:53


>Can anyone tell me why?

You need to initialize the base class, not the base class's members. So:

class Usedchild:public Used{
public:
    Usedchild(Matrix inputmatrix, Vec
inputvec):Used(inputmatrix,inputvec){};

};

should work. It may also be worth your while to look at a text on C++ syntax
before diving too deep into the complicated parts of Boost.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net