[odb-users] Error in compile
    Boris Kolpackov 
    boris at codesynthesis.com
       
    Sun Sep 14 13:21:08 EDT 2014
    
    
  
Hi Nima,
nima chavooshi <nima0102 at gmail.com> writes:
> But I have defined a default constructor. I attached the header of 
> classes.
Looking at your Contact class I see only this constructor:
Contact(string Addr,string PhoneNum);
This is not the default constructor. The default constructor is the
one that can be called without any arguments. In your case, simply
add this to Contact:
private:
  Contact() {}
You will also want to do the same for your other class(es).
Boris
    
    
More information about the odb-users
mailing list