I have the following structure declared in main (NEVERMIND THE MEMBERS!) :
struct args
{
    std::vector<string> names;
    std::vector<std::shared_ptr<RegularExpression>>vreg;
    std::vector<string> stopFile;
    std::vector<string> groundTruth;
    int debug;
};
and I have a classe Verification that takes args as a constructor parameter
#ifndef VERIFICATION_H
#define VERIFICATION_H
class Verification
{
    public:
        Verification(std::string, std::vector<double>,double,args);
    private:
         args _A; 
}
#endif // VERIFICATION_H
Now in main:
struct args
    {
        std::vector<string> names;
        std::vector<std::shared_ptr<RegularExpression>>vreg;
        std::vector<string> stopFile;
        std::vector<string> groundTruth;
        int debug;
    };
    int main()
    {
      Verification v("res.cr",gt, 0.75,A);
      return 0;
    }
I have the following compile errors :
- Verification.h|33|error: 'args' does not name a type| (this error is for the private member in the class _A)
- main.cpp|153|error: no matching function for call to 'Verification::Verification(const char [7], std::vector&, double, args&)'|
- Verification.h|24|error: 'args' has not been declared|(this error is the constructor)
How can I use the structure declared in main as a constructor parameter in class verification?
Thank you.
 
     
     
    