c++


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.

Related Links

In which cases is it okay to allocate on the stack
Simplest way to know a class's type
Draw a vector<glm::vec3> opengl c++
Normal member methods with same name as templated member methods
Efficiently converting complex to its polar form
A* Pathfinding without diagonal movement
Extending namespace std with backported types and templates from newer C++ standards
What is address 0xbaddc0dedeadbead “Bad decode dead bead”
General Solution for classes in which copy constructor using default constructor
How to parse UTF-8 Chinese string
OpenCL returning -64 upon calling clGetPlatformIDs
Eclipse cdt debug quote error
How to stop main thread from another thread in c/c++
How can I use Blob Detector
C++ : for loop in a switch case
leveldb log_reader.h/Reader class design consideration

Categories

HOME
audio
okta
rabbitmq
junit
sql-server-2005
asp-classic
analytics
fiware
webserver
autofixture
memcached
spark-dataframe
jlabel
junit4
tablesorter
.net-4.5
libcurl
spring-statemachine
integer
jquery-animate
boto
xfce
revit
navigation-drawer
atom-feed
jquery-chosen
lightgallery
bootstrapping
data-compression
smartassembly
xilinx-edk
itunes-store
trace
libphonenumber
cartography
burn
wistia
subtitle
matlab-guide
db-schema
jsdoc3
wso2dss
bisonc++
miva
same-origin-policy
nsoutlineview
stdio
motorola
ucp
pubsubhubbub
countdowntimer
compass
kendo-datepicker
xlconnect
codeigniter-restserver
ratchet
graphic-effects
frontpage
scrapyd
rebase
pdf-extraction
divider
zurb-foundation-5
dynamics-nav-2009
elmah.mvc
jison
mpmediapickercontroller
streaminsight
amdatu
voog
date-arithmetic
orca
zurb-joyride
sine-wave
apparmor
teamcity-7.1
graphael
activator
pivotitem
toplink
divshot
jpreloader
ios5.1
customer-support
clang-complete
google-ad-manager
scalaquery
registrar
google-doodle
rails-models
background-music
smalldatetime
dft
uint32
libjson
mkstorekit
sqlmetal
pdc2008

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App