Check if two instances of my class are equal using templates
I want to check if two instances of my class are equal(in C++), there are no pointers in the class. I understand that I would need to override the = operator and manually check all the fields. I am aware of that solution. The problem is that I have like around 100 members in the class, and I would want to do it for many classes of similar sizes. My questions is if there is a way to templatize this? Is this possible? I am fine using velocity.
Reading txt file into 2d array C++
How can I mark a function with an attribute conditionally on the value of a parameter?
Read a text file and store into two different arrays: a string array and float array
converting constructor: How do you explain a function given different arguments in c++
Background in Qt multiplies instead of fitting into window size
C++ pause this program using cin.get()
linking error in utility::conversions::to_string_t in qt creator
readLine() not being saved properly
Check socket with select() before using send()
Error: “Function” not declared in this scope
syntax for array of pointers in C++
Why the prvalue below in [expr.ref]/2?
How to access data from `std::ostringstream` without copying it [duplicate]
Why can't we generalize the pointer declaration?
C++ invalid order of execution for cin and cout on XCode
Tree and its preorder traversal - Code error