To access a non-default constructor of a class member:

Code:
class test {
private:
    std::string name;
public
    test();
    ~test();
}

// The following line matters:
test::test() : name("A name") {
}
Also known as the constructor initialization list.