Comparing two instances of the following struct, I receive an error:
struct MyStruct1 { MyStruct1(const MyStruct2 &_my_struct_2, const int _an_int =
Out of the box, the == operator only works for primitives. To get your code to work, you need to overload the == operator for your struct.