0

I'm trying to declare two structs with the same structure as a below.

struct pair {
    unsigned int r1;
    unsigned int r2;
    unsigned int diff;
};

struct srm {
    struct pair *pairs;
    struct pair *ordered_pairs;
};

And it generate the error 'std::pair': class template has already been declared as a non-class template.

Please help me, why it occurs? (I'm using vc12 (visual studio 2015))

Suho Cho
  • 575
  • 1
  • 7
  • 14

0 Answers0